Algebra.Vector
Vectors.
val to_string : t -> string
String representation of a vector.
val of_list : float list -> t
val dim : t -> int
Dimension.
val scalar : float -> t
val pair : (float * float) -> t
val to_scalar : t -> float
val sum : t -> float
Sum of the entries of the vector.
val squared_norm : t -> float
Square of the euclidean norm.
val init : int -> (int -> float) -> t
val fill : int -> float -> t
val zero : int -> t
val uniform : ?min:float -> ?max:float -> int -> t
Create a uniformly distributed random vector.
val max : t -> float
Maximum entry of a vector.