PsiLAB Help Manual
Page
Section:
High level matrix functions
Name:
conjmat
Calculate the complex conjugate of a complex matrix.
The result is stored in a new allocated matrix b . Each matrix element is transformed in the way:
re a.{i,j,....} -> re a.{i,j,....}
im a.{i,j,....} -> - im a.{i,j,....}
[ b:(Complex.t, 'a, 'b) Matrix.t ] = conjmat
a:(Complex.t, 'a, 'b) Matrix.t
Examples:
[] let c = cmatrix ~dim:[5;3] ~rand:[1.0] () ;;
val c : (Complex.t, '_a, '_b) Matrix.t = <abstr>
[] let c' = conjmat c;;
val c' : (Complex.t, '_a, '_b) Matrix.t = <abstr>
[] let c' = !<+-> c;; (* shortcut *)
val c' : (Complex.t, '_a, '_b) Matrix.t = <abstr>
Printed by PsiLAB