vector difference.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
vector dimension. |
||
| real(kind=wp), | intent(in) | :: | x(*) |
x(n) input vector. |
||
| real(kind=wp), | intent(in) | :: | y(*) |
y(n) input vector. |
||
| real(kind=wp), | intent(out) | :: | z(*) |
z(n) output vector where |
pure subroutine mxvdif(n,x,y,z) integer,intent(in) :: n !! vector dimension. real(wp),intent(in) :: x(*) !! x(n) input vector. real(wp),intent(in) :: y(*) !! y(n) input vector. real(wp),intent(out) :: z(*) !! z(n) output vector where `z:= x - y`. integer :: i do i = 1 , n z(i) = x(i) - y(i) end do end subroutine mxvdif