Module Matrix

module Matrix: sig .. end
Compact matrix representation when Bigarray is available.

type matrix_bool = bool array array 
type matrix_int = int array array 
type matrix_float = float array array 
val dimx : 'a array array -> int
val dimy : 'a array array -> int
val in_bounds : int -> int -> 'a array array -> bool
val transpose : 'a array array -> 'a array array
val init_mat : (int -> int -> 'a) -> w:int -> h:int -> 'a array array
val map_mat : ?bw:int ->
?bh:int -> (int -> int -> 'a -> 'b) -> 'a array array -> 'b array array
val iter_mat : ?bw:int -> ?bh:int -> (int -> int -> 'a -> unit) -> 'a array array -> unit
val fold_mat : ?bw:int ->
?bh:int -> ('a -> int -> int -> 'b -> 'a) -> 'a -> 'b array array -> 'a
val fold_rect : ('a -> int -> int -> 'a) -> 'a -> w:int -> h:int -> 'a
module type MAT = sig .. end
module B: MAT  with type elt = bool and type t = matrix_bool
module I: MAT  with type elt = int and type t = matrix_int
module F: MAT  with type elt = float and type t = matrix_float
module P: module type of Pervasives