FORCES
FORtran lib for Comp. Env. Sys.
|
First location in array of element with the maximum value. More...
Public Member Functions | |
integer(i4) function | imaxloc_i4 (arr, mask) |
integer(i4) function | imaxloc_i8 (arr, mask) |
integer(i4) function | imaxloc_sp (arr, mask) |
integer(i4) function | imaxloc_dp (arr, mask) |
First location in array of element with the maximum value.
Fortran intrinsic maxloc return arrays with all subsripts corresponding to the maximum 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 131 of file mo_utils.F90.
integer(i4) function mo_utils::imaxloc::imaxloc_dp | ( | real(dp), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 764 of file mo_utils.F90.
integer(i4) function mo_utils::imaxloc::imaxloc_i4 | ( | integer(i4), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 726 of file mo_utils.F90.
integer(i4) function mo_utils::imaxloc::imaxloc_i8 | ( | integer(i8), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 745 of file mo_utils.F90.
integer(i4) function mo_utils::imaxloc::imaxloc_sp | ( | real(sp), dimension(:), intent(in) | arr, |
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 783 of file mo_utils.F90.