Nn.Vector
type t = float array
val to_string : t -> string
val of_list : float list -> t
val dim : t -> int
val scalar : float -> t
val to_scalar : t -> float
val map : (float -> float) -> t -> t
val mapi : (int -> float -> float) -> t -> t
val map2 : (float -> float -> float) -> t -> t -> t
val add : t -> t -> t
val sub : t -> t -> t
val sum : t -> float
Sum of the entries of the vector.
val squared_norm : t -> float
val cmul : float -> t -> t
val hadamard : t -> t -> t
val init : int -> (int -> float) -> t
val copy : t -> t
val max : t -> float
Maximum entry of a vector.
val softmax : t -> t