Nn.Matrixmodule Int : sig ... endMatrices. 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) -> tCreate a matrix.
val rows : t -> intNumber of rows.
val cols : t -> intNumber of columns.
val dims : t -> int * intval src : t -> intDimension of the source.
val tgt : t -> intDimension of the target.
val print_dims : string -> t -> unitval to_scalar : t -> floatval of_list : float list -> tCreate a vector from a list.
val to_list : t -> float list