PsiLAB Help Manual
Page
Section:
High level matrix functions
Name:
transpose2
Transpose a matrix.
Only applicable to 2 dimensional matrixes. Special case: Vector. Row and column elements are interchanged. The result is stored in the already allocated matrix c .
transpose2
a:('a, 'b, 'c) Matrix.t
b:('a, 'd, 'e) Matrix.t
Examples:
[] let a = fmatrix ~dim:[5;3] ~rand:[1.0] () ;;
val a : (float, '_a, '_b) Matrix.t = <abstr>
[] let b = fmatrix ~dim:[3;5] () ;;
val a : (float, '_a, '_b) Matrix.t = <abstr>
[] transpose2 a b ;;
- unit
[] b =<-|> a ;;
- unit
Printed by PsiLAB