FORCES
FORtran lib for Comp. Env. Sys.
|
First location in array of element with the minimum value. More...
Public Member Functions | |
integer(i4) function | iminloc_i4 (arr, mask) |
integer(i4) function | iminloc_i8 (arr, mask) |
integer(i4) function | iminloc_sp (arr, mask) |
integer(i4) function | iminloc_dp (arr, mask) |
First location in array of element with the minimum value.
Fortran intrinsic minloc return arrays with all subsripts corresponding to the minimum value in the array.
This routine returns only the first entry as scalar integer.
Example
-> see also example in test directory
[in] | integer(i4/i8)/real(sp/dp)/complex(spc/dpc) :: array(:) | Input array |
[in] | logical :: mask(:) | If present, only those locations in array corresponding to the true values in mask are searched for the maximum value. |
Definition at line 155 of file mo_utils.F90.
integer(i4) function mo_utils::iminloc::iminloc_dp | ( | real(dp), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 842 of file mo_utils.F90.
integer(i4) function mo_utils::iminloc::iminloc_i4 | ( | integer(i4), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 804 of file mo_utils.F90.
integer(i4) function mo_utils::iminloc::iminloc_i8 | ( | integer(i8), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 823 of file mo_utils.F90.
integer(i4) function mo_utils::iminloc::iminloc_sp | ( | real(sp), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 861 of file mo_utils.F90.