PsiLAB Help Manual Page

Section: Basic Matrix functions

Name: =<<

Evaluate for each matrix element of matrix a the function f and store the result in the matrix b. See matop2 for more details.

[ b:('a, 'b, 'c) Matrix.t ] =<<
func:('a -> 'a) *
a:('a, 'b, 'c) Matrix.t *
sub:(int * int) list

Example:
[] let f = fmatrix ~const:[1.0,2.0,3.0;4.0,5.0,6.0] () ;; 
[] let sinfmat = fmatrix ~dim:[2;3] () ;; 
[] sinfmat =<< (sin,f,[]);; 

Printed by PsiLAB