Owl_dense_matrix_zComplex 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.tval empty : int -> int -> matval zeros : int -> int -> matval ones : int -> int -> matval eye : int -> matval bernoulli : ?p:float -> 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 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 : mat -> string -> unitval load : string -> matval save_txt : ?sep:string -> mat -> string -> unitval load_txt : ?sep:string -> string -> matval sort_ : mat -> unitval conj_ : mat -> unitval abs_ : mat -> unitval neg_ : mat -> unitval reci_ : mat -> unitval signum_ : mat -> unitval sqr_ : mat -> unitval sqrt_ : mat -> unitval cbrt_ : mat -> unitval exp_ : mat -> unitval exp2_ : mat -> unitval exp10_ : mat -> unitval expm1_ : mat -> unitval log_ : mat -> unitval log2_ : mat -> unitval log10_ : mat -> unitval log1p_ : mat -> unitval sin_ : mat -> unitval cos_ : mat -> unitval tan_ : mat -> unitval asin_ : mat -> unitval acos_ : mat -> unitval atan_ : mat -> unitval sinh_ : mat -> unitval cosh_ : mat -> unitval tanh_ : mat -> unitval asinh_ : mat -> unitval acosh_ : mat -> unitval atanh_ : mat -> unitval floor_ : mat -> unitval ceil_ : mat -> unitval round_ : mat -> unitval trunc_ : mat -> unitval fix_ : mat -> unitval erf_ : mat -> unitval erfc_ : mat -> unitval relu_ : mat -> unitval softplus_ : mat -> unitval softsign_ : mat -> unitval sigmoid_ : mat -> unitval softmax_ : mat -> unitval cumsum_ : ?axis:int -> mat -> unitval cumprod_ : ?axis:int -> mat -> unitval cummin_ : ?axis:int -> mat -> unitval cummax_ : ?axis:int -> mat -> unitval dropout_ : ?rate:float -> mat -> unit