Module Owl_sparse_dok_matrixSource
Create sparse matrices
Sourceval zeros : ?density:float -> ('a, 'b) kind -> int -> int -> ('a, 'b) t Obtain the basic properties
Sourceval shape : ('a, 'b) t -> int * int Sourceval row_num : ('a, 'b) t -> int Sourceval col_num : ('a, 'b) t -> int Sourceval numel : ('a, 'b) t -> int Sourceval density : ('a, 'b) t -> float Manipulate a matrix
Sourceval set : ('a, 'b) t -> int -> int -> 'a -> unit Sourceval get : ('a, 'b) t -> int -> int -> 'a Sourceval reset : ('a, 'b) t -> unit Sourceval copy : ('a, 'b) t -> ('a, 'b) t Iterate elements, columns, and rows
Sourceval iteri_nz : (int -> int -> 'a -> unit) -> ('a, 'b) t -> unit Sourceval save : ('a, 'b) t -> string -> unit