MINVAL — Minimum value of an array#
- 
MINVAL(ARRAY, MASK)#
- Determines the minimum value of the elements in an array value, or, if the - DIMargument is supplied, determines the minimum value along each row of the array in the- DIMdirection. If- MASKis present, only the elements for which- MASKis- .TRUE.are considered. If the array has zero size, or all of the elements of- MASKare- .FALSE., then the result is- HUGE(ARRAY)if- ARRAYis numeric, or a string of- CHAR(255)characters if- ARRAYis of character type.- Parameters
- ARRAY – Shall be an array of type - INTEGERor- REAL.
- DIM – (Optional) Shall be a scalar of type - INTEGER, with a value between one and the rank of- ARRAY, inclusive. It may not be an optional dummy argument.
- MASK – Shall be of type - LOGICAL, and conformable with- ARRAY.
 
- Returns
- If - DIMis absent, or if- ARRAYhas a rank of one, the result is a scalar. If- DIMis present, the result is an array with a rank one less than the rank of- ARRAY, and a size corresponding to the size of- ARRAYwith the- DIMdimension removed. In all cases, the result is of the same type and kind as- ARRAY.
 - Standard:
- Fortran 90 and later 
- Class:
- Transformational function 
- Syntax:
- RESULT = MINVAL(ARRAY, DIM [, MASK]) RESULT = MINVAL(ARRAY [, MASK]) 
- See also: