Mavryk_benchmark.Scikit_matrixtype gen =
(float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Genarray.tGenarrays.
val create : lines:int -> cols:int -> tCreate a matrix and initializes it to 0.0
val init : lines:int -> cols:int -> f:(int -> int -> float) -> tCreate and initializes a matrix.
val dim1 : t -> intNumber of lines.
val dim2 : t -> intNumber of columns.
val shape : t -> int * intLines x Columns
val set : t -> int -> int -> float -> unitset m i j v sets the element on line i and column j of m to v.
val get : t -> int -> int -> floatget m i j gets the element on line i and column j.
concat_columns_horiz [c1;...;cn] returns the matrix having c1...cn as rows. The function fails if the columns have incoherent dimensions.
val to_numpy : t -> Pytypes.pyobjectConverts to a numpy Python object.
val to_numpy_vector :
(float, Stdlib.Bigarray.float64_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t ->
Pytypes.pyobjectConverts a vector to a numpy Python object.
val of_numpy : Pytypes.pyobject -> tConverts from a numpy Python object.
val numpy_show : t -> stringString representation of matri via numpy.