Next: Array Reduction Intrinsics
Up: Selected Intrinsic Functions
Previous: Maximum and Minimum Intrinsics
There are two intrinsics in this class:
- MINLOC(SOURCE[,MASK]) -- Location of a minimum value in an array
under an optional mask.
- MAXLOC(SOURCE [,MASK]) -- Location of a maximum value in an array
under an optional mask.
For example, if
then
- MINLOC(Array) is (/3,4/)
- MAXLOC(Array,Array.LE.7) is (/1,4/)
- MAXLOC(MAXLOC(Array,Array.LE.7)) is (/2/)
(array valued).
For more information, click here
Now try this question
Next: Array Reduction Intrinsics
Up: Selected Intrinsic Functions
Previous: Maximum and Minimum Intrinsics
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996Not for commercial use.