0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_utils::iminloc Interface Reference

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)
 

Detailed Description

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

integer(i4) :: imin
imin = iminloc(vec, mask=mask)

-> see also example in test directory

Parameters
[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.
Returns
integer(i4) :: iminloc — First location of minimum
Authors
Matthias Cuntz, Juliane Mai
Date
Feb 2014

Definition at line 155 of file mo_utils.F90.

Member Function/Subroutine Documentation

◆ iminloc_dp()

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.

◆ iminloc_i4()

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.

◆ iminloc_i8()

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.

◆ iminloc_sp()

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.


The documentation for this interface was generated from the following file: