Nn.Matrix
module Int : sig ... end
Matrices. As usual a.(i).(j) is the element in row i and column j and corresponds to the i-th output of the j-th input.
val init : int -> int -> (int -> int -> float) -> t
Create a matrix.
val rows : t -> int
Number of rows.
val cols : t -> int
Number of columns.
val dims : t -> int * int
val src : t -> int
Dimension of the source.
val tgt : t -> int
Dimension of the target.
val print_dims : string -> t -> unit
val to_scalar : t -> float
val of_list : float list -> t
Create a vector from a list.
val to_list : t -> float list