PsiLAB Help Manual
Page
Section:
Basic Matrix functions
Name:
dim2
Returns the dimension sizes of a matrix.
This functions returns an (Caml) array with the sizes for each dimension of the argument matrix.
[ sizes:int array ] = dim2 (mat:('a, 'b, 'c) Matrix.t)
Example:
[] let f = fmatrix ~dim:[5;4;3] () ;;
val f : (float, '_a, '_b) Matrix.t = <abstr>
[] let fsize = dim2 f ;;
val fsize : int array = [|5; 4; 3|]
Printed by PsiLAB