Module Core_bench.Linear_algebra.Vec

Vectors

type t = float 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 vector

val create0 : int ‑> t

create0 len sreate a vector of 0s of length len.

val sumsq : t ‑> float

The sum of squares of entries in a vector

val norm : t ‑> float

The Euclidean length of a vector