Algebra.Linear
Linear maps. Those are roughly the same as matrices, excepting for the convention that arguments are input and then output.
type t = Matrix.t
val src : t -> int
val tgt : t -> int
val get : t -> int -> int -> float
val init : int -> int -> (int -> int -> float) -> t
val uniform : ?min:float -> ?max:float -> int -> int -> t
val mapi : (int -> int -> float -> float) -> t -> t
val add : t -> t -> Matrix.t
val cmul : float -> Matrix.t -> Matrix.t
val app : t -> Vector.t -> Vector.t
Apply a linear function to a vector.
val tapp : t -> Vector.t -> Vector.t
Apply the transpose of a linear function to a vector.