PsiLAB Help Manual Page

Section: High level matrix functions

Name: matmin

Determine the minimum of a matrix.
This functions returns the minimum value of a matrix and the position within the matrix.
[ (val:'a) * (pos:(int, 'b, 'c) Matrix.t) ] = matmin
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 (?).
[] let f = fmatrix ~dim:[10;20] ~rand:[1.0] () ;; 
[] [] matmin f ;; 
- : float * (int, '_a, '_b) Matrix.t = 0.00912143276414, <abstr> 

Printed by PsiLAB