package owl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml Scientific and Engineering Computing
Install
dune-project
Dependency
Authors
Maintainers
Sources
owl-1.0.1.tbz
sha256=72ca9f6edd302fdfa16c7559cedac7ac2c885466a367e17ea1ea8807b2dd13ef
sha512=72a60fb5b0ee4eea6cd8012aab9a492a32483feb218c1b6b4b913e0af985fba288113164e5af1129c0b5fffdb49d7b9aded6647238626b6561dc7125fdeb4eb5
doc/owl/Owl_dense_matrix_z/index.html
Module Owl_dense_matrix_z
Complex dense matrix module: this module supports operations on dense matrices of complex numbers. The complex number has a record type of {re = float; im = float}.
This page only contains detailed explanations for the operations specific to Dense.Complex module. Most of the other operations are the same to those in Dense.Real module, therefore please refer to the documentation of Dense.Real for more information.
type elt = Complex.ttype mat = (Complex.t, Bigarray.complex64_elt) Owl_dense_matrix_generic.ttype cast_mat = (float, Bigarray.float64_elt) Owl_dense_matrix_generic.tinclude Owl_dense_matrix_intf.Common with type elt := elt and type mat := mat
Create dense matrices
val empty : int -> int -> matval zeros : int -> int -> matval ones : int -> int -> matval eye : int -> matval bernoulli : ?p:float -> int -> int -> matval unit_basis : int -> int -> matval hadamard : int -> matval magic : int -> matDense row vectors and meshgrids
val vector : int -> matval vector_zeros : int -> matval vector_ones : int -> matval vector_uniform : int -> matObtain the basic properties of a matrix
val shape : mat -> int * intval row_num : mat -> intval col_num : mat -> intval numel : mat -> intval nnz : mat -> intval density : mat -> floatval size_in_bytes : mat -> intManipulate a matrix
val get_fancy : Owl_types.index list -> mat -> matval set_fancy : Owl_types.index list -> mat -> mat -> unitval reset : mat -> unitval swap_rows : mat -> int -> int -> unitval swap_cols : mat -> int -> int -> unitval top : mat -> int -> int array arrayval bottom : mat -> int -> int array arrayval argsort :
mat ->
(int64, Bigarray.int64_elt, Bigarray.c_layout) Bigarray.Genarray.tIterate elements, columns, and rows.
Examine elements and compare two matrices
val is_zero : mat -> boolval is_positive : mat -> boolval is_negative : mat -> boolval is_nonpositive : mat -> boolval is_nonnegative : mat -> boolval is_normal : mat -> boolval not_nan : mat -> boolval not_inf : mat -> boolRandomisation functions
Input/Output and helper functions
val save : out:string -> mat -> unitval load : string -> matval save_txt : ?sep:string -> ?append:bool -> out:string -> mat -> unitval load_txt : ?sep:string -> string -> matval save_npy : out:string -> mat -> unitval load_npy : string -> matUnary mathematical operations
Binary mathematical operations
Functions of in-place modification
val bernoulli_ : ?p:float -> out:mat -> unitval zeros_ : out:mat -> unitval ones_ : out:mat -> unitval sort_ : mat -> unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>