Minimum and maximum of a 1-D array in a single length-2 result.
Returns [minval(array), maxval(array)], preserving the input type.
The result is undefined for an empty array. Supported types are:
integer(int32), integer(int64), real(sp), real(dp).
Usage: mm = min_max(array) ! mm(1) = min, mm(2) = max
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Module Procedures
private pure function min_max_int32(array) result(mm)
Minimum and maximum of an integer(int32) array.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=int32),
intent(in)
::
array(:)
Return Value
integer(kind=int32), (2)
private pure function min_max_int64(array) result(mm)
Minimum and maximum of an integer(int64) array.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=int64),
intent(in)
::
array(:)
Return Value
integer(kind=int64), (2)
private pure function min_max_sp(array) result(mm)
Minimum and maximum of a real(sp) array.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=sp),
intent(in)
::
array(:)
Return Value
real(kind=sp), (2)
private pure function min_max_dp(array) result(mm)