Module Linear_algebra.Mat

module Mat: sig .. end
Matrices

type t = float array array 
val copy : t -> t
Copy a matrix
val create0 : rows:int -> cols:int -> t
Create a matrix of 0s
val create_per_row : rows:int -> cols:int -> f:(int -> float) -> t
val get_column : t -> int -> Linear_algebra.Vec.t
Extract a column. Data is copied. Indices start at 0.
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t

Copy a matrix

Create a matrix of 0s

Extract a column. Data is copied. Indices start at 0.