package owl

  1. Overview
  2. Docs
OCaml Scientific and Engineering Computing

Install

Dune Dependency

Authors

Maintainers

Sources

owl-1.0.2.tbz
sha256=38d210ce6c1c2f09631fd59951430e4f364b5ae036c71ed1b32ce559b2a29263
sha512=c468100556445384b9c6adad9c37b5a9b8c27db8be35f61979e65fafa88c60221b8bda0a9c06cfbbc8d4e216a1ed08a315dfefb45bb4f5f15aa82d4358f57567

doc/owl/Owl_sparse_dok_matrix/index.html

Module Owl_sparse_dok_matrix

type ('a, 'b) t
type ('a, 'b) kind = ('a, 'b) Bigarray.kind
Create sparse matrices
val zeros : ?density:float -> ('a, 'b) kind -> int -> int -> ('a, 'b) t
Obtain the basic properties
val shape : ('a, 'b) t -> int * int
val row_num : ('a, 'b) t -> int
val col_num : ('a, 'b) t -> int
val numel : ('a, 'b) t -> int
val nnz : ('a, 'b) t -> int
val density : ('a, 'b) t -> float
val kind : ('a, 'b) t -> ('a, 'b) kind
Manipulate a matrix
val set : ('a, 'b) t -> int -> int -> 'a -> unit
val get : ('a, 'b) t -> int -> int -> 'a
val reset : ('a, 'b) t -> unit
val copy : ('a, 'b) t -> ('a, 'b) t
Iterate elements, columns, and rows
val iteri_nz : (int -> int -> 'a -> unit) -> ('a, 'b) t -> unit
Input/Output and helper functions
val save : ('a, 'b) t -> string -> unit
val load : ('a, 'b) kind -> string -> ('a, 'b) t
OCaml

Innovation. Community. Security.