Copyright Digital Equipment Corp. All rights reserved.

MINVAL

 MINVAL (array [,dim] [,mask]

 Class:  Transformational function - Generic

 Returns the minimum value of all elements in an array, a set of
 elements in an array, or elements in a specified dimension of an
 array.

 The array can be of type integer or real.  The "dim" must be a
 scalar integer with a value in the range 1 to n, where "n" is the
 rank of "array".  The "mask" must be a logical array conformable
 with "array".

 The result is the same data type as "array".  The result is a
 logical array with the same kind type parameter as "array".  The
 result is a scalar if "dim" is absent or "array" has rank one.
 Otherwise, the result is an array with rank that is one less than
 "array", and shape (d1, d2,..., d"dim"-1, d"dim"+1,..., dn), where
 (d1, d2,..., dn) is the shape of "array".

 The result of MINVAL (array) has a value equal to the minimum value
 of all the elements in "array".

 The result of MINVAL (array, mask=mask) has a value equal to the
 minimum value of the elements in "array" corresponding to the
 condition specified by "mask".

 If "array" has size zero or if there are no true elements in
 "mask," the result has the value of the positive number of the
 largest magnitude supported by the processor for numbers of the
 type and kind type parameter of "array".

 Examples:

 The value of MINVAL ((/2, 3, 4/)) is 2.

 The value of MINVAL (B, MASK=B .GT.  0.0) finds the minimum of the
 positive elements of B.

 Consider that C is the array

  |2 3 4|
  |5 6 7|

 MINVAL (C, DIM=1) has the value (2, 3, 4).

 MINVAL (C, DIM=2) has the value (2, 5).