Module Core_bench.Linear_algebra.Mat

Matrices

type t = float array array
include sig ... end
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
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 ‑> Vec.t

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