Module Linear_algebra.Vec

module Vec: sig .. end
Vectors

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

Copy a vector

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

The sum of squares of entries in a vector

The Euclidean length of a vector