elements of the integer vector are replaced by their absolute values.
Note that this function also subtracts 10 from ix if the absolute value
is greater than 10.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | n |
dimension of the integer vector. |
||
| integer, | intent(inout) | :: | ix(*) |
vector which is updated so that
|
pure subroutine mxvina(n,ix) integer,intent(in) :: n !! dimension of the integer vector. integer,intent(inout) :: ix(*) !! vector which is updated so that !! `ix(i):=abs(ix(i))` for all i. integer :: i do i = 1 , n ix(i) = abs(ix(i)) if ( ix(i)>10 ) ix(i) = ix(i) - 10 end do end subroutine mxvina