package owl
OCaml Scientific and Engineering Computing
Install
dune-project
Dependency
Authors
Maintainers
Sources
owl-1.0.1.tbz
sha256=72ca9f6edd302fdfa16c7559cedac7ac2c885466a367e17ea1ea8807b2dd13ef
sha512=72a60fb5b0ee4eea6cd8012aab9a492a32483feb218c1b6b4b913e0af985fba288113164e5af1129c0b5fffdb49d7b9aded6647238626b6561dc7125fdeb4eb5
doc/owl/Owl_sparse_matrix_d/index.html
Module Owl_sparse_matrix_d
type mat = (float, Bigarray.float64_elt) Owl_sparse_matrix_generic.t
Create sparse matrices
val zeros : int -> int -> mat
val ones : int -> int -> mat
val eye : int -> mat
val binary : int -> int -> mat
val uniform : ?scale:float -> int -> int -> mat
val uniform_int : ?a:int -> ?b:int -> int -> int -> mat
val sequential : int -> int -> mat
Obtain the basic properties of a matrix
val shape : mat -> int * int
val row_num : mat -> int
val col_num : mat -> int
val row_num_nz : mat -> int
val col_num_nz : mat -> int
val numel : mat -> int
val nnz : mat -> int
val nnz_rows : mat -> int array
val nnz_cols : mat -> int array
val density : mat -> float
Manipulate a matrix
val reset : mat -> unit
Iterate elements, columns, and rows
Examine elements and compare two matrices
val is_zero : mat -> bool
val is_positive : mat -> bool
val is_negative : mat -> bool
val is_nonnegative : mat -> bool
Randomisation functions
val permutation_matrix : int -> mat
Input/Output and helper functions
val to_dense : mat -> Owl_dense.Matrix.D.mat
val of_dense : Owl_dense.Matrix.D.mat -> mat
val print : mat -> unit
val save : mat -> string -> unit
val load : string -> mat
Unary mathematical operations
Binary mathematical operations
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page