package owl
OCaml Scientific and Engineering Computing
Install
Dune Dependency
Authors
Maintainers
Sources
owl-0.7.0.tbz
sha256=cb9b596d7a2166630e385381f5dcb7cc6c2a4afebd32b2811db3e4b4fe008f3c
sha512=940c0953ee3fce453787e0820df42f4f3852413ba0a1af9d18af128d90a76bf9c93aaa3af42bd80be938b0b53ed0f546a1972ecc5fad7dd35247cea5e699b78f
doc/owl/Owl_dense_matrix_s/index.html
Module Owl_dense_matrix_s
type mat = (float, Bigarray.float32_elt) Owl_dense_matrix_generic.t
Create dense matrices
val empty : int -> int -> mat
val zeros : int -> int -> mat
val ones : int -> int -> mat
val eye : int -> mat
val semidef : int -> mat
val bernoulli : ?p:float -> int -> int -> mat
val hadamard : int -> mat
val magic : int -> mat
Dense row vectors and meshgrids
val vector : int -> mat
val vector_zeros : int -> mat
val vector_ones : int -> mat
val vector_uniform : 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 numel : mat -> int
val nnz : mat -> int
val density : mat -> float
val size_in_bytes : mat -> int
Manipulate a matrix
val get_fancy : Owl_types.index list -> mat -> mat
val set_fancy : Owl_types.index list -> mat -> mat -> unit
val reset : mat -> unit
val swap_rows : mat -> int -> int -> unit
val swap_cols : mat -> int -> int -> unit
val top : mat -> int -> int array array
val bottom : mat -> int -> int array array
val argsort :
mat ->
(int64, Bigarray.int64_elt, Bigarray.c_layout) Bigarray.Genarray.t
Iterate elements, columns, and rows.
Examin elements and compare two matrices
val is_zero : mat -> bool
val is_positive : mat -> bool
val is_negative : mat -> bool
val is_nonpositive : mat -> bool
val is_nonnegative : mat -> bool
val is_normal : mat -> bool
val not_nan : mat -> bool
val not_inf : mat -> bool
Randomisation functions
Input/Output and helper functions
val save : mat -> string -> unit
val load : string -> mat
val save_txt : ?sep:string -> ?append:bool -> mat -> string -> unit
val load_txt : ?sep:string -> string -> mat
Unary mathematical operations
val max_pool :
?padding:Owl_types.padding ->
mat ->
int array ->
int array ->
mat
val avg_pool :
?padding:Owl_types.padding ->
mat ->
int array ->
int array ->
mat
Binary mathematical operations
Fucntions of in-place modification
val bernoulli_ : ?p:float -> out:mat -> unit
val zeros_ : out:mat -> unit
val ones_ : out:mat -> unit
val sort_ : mat -> unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- Create dense matrices
- Dense row vectors and meshgrids
- Obtain the basic properties of a matrix
- Manipulate a matrix
- Iterate elements, columns, and rows.
- Examin elements and compare two matrices
- Randomisation functions
- Input/Output and helper functions
- Unary mathematical operations
- Binary mathematical operations
- Fucntions of in-place modification