Module Owl_sparse_matrix_cSource
Create sparse matrices
Obtain the basic properties of a matrix
Manipulate a matrix
Iterate elements, columns, and rows
Sourceval iteri : (int -> int -> elt -> unit) -> mat -> unit Sourceval foldi : (int -> int -> 'a -> elt -> 'a) -> 'a -> mat -> 'a Sourceval filteri : (int -> int -> elt -> bool) -> mat -> (int * int) array Sourceval filter : (elt -> bool) -> mat -> (int * int) array Sourceval iteri_nz : (int -> int -> elt -> unit) -> mat -> unit Sourceval foldi_nz : (int -> int -> 'a -> elt -> 'a) -> 'a -> mat -> 'a Sourceval filteri_nz : (int -> int -> elt -> bool) -> mat -> (int * int) array Sourceval filter_nz : (elt -> bool) -> mat -> (int * int) array Sourceval iteri_rows_nz : (int -> mat -> unit) -> mat -> unit Sourceval iteri_cols_nz : (int -> mat -> unit) -> mat -> unit Sourceval mapi_rows_nz : (int -> mat -> 'a) -> mat -> 'a array Sourceval mapi_cols_nz : (int -> mat -> 'a) -> mat -> 'a array Sourceval fold_rows_nz : ('a -> mat -> 'a) -> 'a -> mat -> 'a Sourceval fold_cols_nz : ('a -> mat -> 'a) -> 'a -> mat -> 'a Examine elements and compare two matrices
Randomisation functions
Sourceval draw_rows : ?replacement:bool -> mat -> int -> mat * int array Sourceval draw_cols : ?replacement:bool -> mat -> int -> mat * int array Sourceval of_array : int -> int -> (int array * elt) array -> mat Unary mathematical operations
Binary mathematical operations