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 new matrix b. See matop for more details.

[ b:('a, 'b, 'c) Matrix.t ] =
func:('a -> 'a) ||<<
a:('a, 'b, 'c) Matrix.t

Example:

[] let f = fmatrix ~const:[1.0,2.0,3.0;4.0,5.0,6.0] () ;; 
[] let sinf = sin ||<< f; 

Printed by PsiLAB