difference of two vectors returned in the subtracted one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
vector dimension. |
||
| real(kind=wp), | intent(inout) | :: | x(*) |
x(n) input vector. |
||
| real(kind=wp), | intent(inout) | :: | y(*) |
y(n) update vector where |
pure subroutine mxvsav(n,x,y) integer,intent(in) :: n !! vector dimension. real(wp),intent(inout) :: x(*) !! x(n) input vector. real(wp),intent(inout) :: y(*) !! y(n) update vector where `y:= x - y`. real(wp) :: temp integer :: i do i = 1 , n temp = y(i) y(i) = x(i) - y(i) x(i) = temp end do end subroutine mxvsav