Owl_dense_matrix_cComplex 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.complex32_elt) Owl_dense_matrix_generic.ttype cast_mat = (float, Bigarray.float32_elt) Owl_dense_matrix_generic.tinclude Owl_dense_matrix_intf.Common with type elt := elt and type mat := matval 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 -> matval vector : int -> matval vector_zeros : int -> matval vector_ones : int -> matval vector_uniform : int -> matval 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 -> intval 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.tval 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 -> boolval 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 -> matval bernoulli_ : ?p:float -> out:mat -> unitval zeros_ : out:mat -> unitval ones_ : out:mat -> unitval sort_ : mat -> unit