PsiLAB Help Manual
Page
Section:
High level matrix functions
Name:
matmax
Determine the maximum of a matrix.
This functions returns the maximum value of a matrix and the position within the matrix.
[ (val:'a) * (pos:(int, 'b, 'c) Matrix.t) ] = matmax
mat:('a, 'b, 'c) Matrix.t
The position result is a vector with length equal to the dimension number of the matrix mat . In the case of a complex matrix, the real and imaginary parts are handled independently (?).
Example:
[] let f = fmatrix ~dim:[10;20] ~rand:[1.0] () ;;
[] [] matmax f ;;
- : float * (int, '_a, '_b) Matrix.t = 0.984602115802, <abstr>
Printed by PsiLAB