Module type Matrix.Matrix

High-level abstraction of a matrix.

type num
type vec
type t
val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val hash : t -> int
val show : t -> string
val copy : t -> t
val empty : unit -> t
val is_empty : t -> bool
val num_rows : t -> int
val compare_num_rows : t -> t -> int
val num_cols : t -> int
val init_with_vec : vec -> t
val append_row : t -> vec -> t
val get_row : t -> int -> vec
val remove_row : t -> int -> t
val remove_zero_rows : t -> t
val map2 : (vec -> num -> vec) -> t -> vec -> t
val map2i : (int -> vec -> num -> vec) -> t -> vec -> t
val add_empty_columns : t -> int array -> t
val set_col : t -> vec -> int -> t
val del_cols : t -> int array -> t
val find_opt : (vec -> bool) -> t -> vec option
val reduce_col : t -> int -> t
val normalize : t -> t Stdlib.Option.t
val is_covered_by : t -> t -> bool