1 parent 2630120 commit d9af3a4Copy full SHA for d9af3a4
1 file changed
src/matrix.ml
@@ -5,6 +5,7 @@ module Make (R:Ring.T) = struct
5
(** A matrix. *)
6
type t = R.t array array
7
8
+ (** A matrix. *)
9
type matrix = t
10
11
(** Zero matrix. *)
@@ -145,6 +146,7 @@ module Make (R:Ring.T) = struct
145
146
(** Underlying (non-labeled) matrix. *)
147
let matrix ((_,_,m):t) = m
148
149
+ (** Generate a matrix filled with zeroes. *)
150
let zero rows cols : t =
151
let m = zero (Array.length rows) (Array.length cols) in
152
L.of_array rows, L.of_array cols, m
0 commit comments