PsiLAB Help Manual
Page
Section:
High level matrix functions
Name:
conjmat2
Calculate the complex conjugate of a complex matrix. The result is stored in the already 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,....}
conjmat2
a:(Complex.t, 'a, 'b) Matrix.t
b:(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' = cmatrix ~dim:[5;3] () ;;
val c : (Complex.t, '_a, '_b) Matrix.t = <abstr>
[] conjmat c c';;
- unit
[] c' =<+-> c;; (* shortcut *)
- unit
Printed by PsiLAB