PsiLAB Help Manual Page

Section: High level matrix functions

Name: cabsmat2

Transform a complex matrix in a complex absoulte float matrix.
For each element of the complex matrix a the complex absolute value is calculated and stored in the already allocated matrix b .
a:(Complex.t, 'a, 'b) Matrix.t
(float, 'a, 'b) Matrix.t

[] let c = cmatrix ~dim:[5;3] ~rand:[1.0] ();; 
val c : (Complex.t, '_a, '_b) Matrix.t = <abstr> 
[] let f = fmatrix ~dim:[5;3] () ;; 
[] cabsmat2 c f ;; 
- unit 
[] f =<||> c ;; 	 (* shortcut *) 
- unit 

Printed by PsiLAB