package owl

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module S.LinalgSource

include module type of struct include Owl_linalg.S end
include module type of struct include Owl_linalg_s end
Sourcetype elt = float
Sourcetype complex_mat = Owl_dense_matrix_c.mat
include Owl_linalg_intf.Common with type elt := elt and type mat := mat and type complex_mat := complex_mat and type int32_mat := int32_mat
include Owl_base_linalg_intf.Common with type elt := elt with type mat := mat with type complex_mat := complex_mat with type int32_mat := int32_mat
Basic functions
Sourceval inv : mat -> mat
Sourceval det : mat -> elt
Sourceval logdet : mat -> elt
Sourceval is_triu : mat -> bool
Sourceval is_tril : mat -> bool
Sourceval is_symmetric : mat -> bool
Sourceval is_diag : mat -> bool
Factorisation
Sourceval svd : ?thin:bool -> mat -> mat * mat * mat
Sourceval chol : ?upper:bool -> mat -> mat
Linear system of equations
Sourceval linsolve : ?trans:bool -> ?typ:[ `n | `u | `l ] -> mat -> mat -> mat
Sourceval sylvester : mat -> mat -> mat -> mat
Sourceval lyapunov : mat -> mat -> mat
Sourceval discrete_lyapunov : ?solver:[ `default | `direct | `bilinear ] -> mat -> mat -> mat
Basic functions
Sourceval pinv : ?tol:float -> mat -> mat
Sourceval rank : ?tol:float -> mat -> int
Sourceval norm : ?p:float -> mat -> float
Sourceval vecnorm : ?p:float -> mat -> float
Sourceval cond : ?p:float -> mat -> float
Sourceval rcond : mat -> float
Sourceval is_posdef : mat -> bool
Factorisation
Sourceval lu : mat -> mat * mat * int32_mat
Sourceval svdvals : mat -> mat
Sourceval gsvd : mat -> mat -> mat * mat * mat * mat * mat * mat
Sourceval gsvdvals : mat -> mat -> mat
Sourceval schur : mat -> mat * mat * complex_mat
Sourceval schur_tz : mat -> mat * mat
Sourceval ordschur : select:int32_mat -> mat -> mat -> mat * mat * complex_mat
Sourceval qz : mat -> mat -> mat * mat * mat * mat * complex_mat
Sourceval ordqz : select:int32_mat -> mat -> mat -> mat -> mat -> mat * mat * mat * mat * complex_mat
Sourceval qzvals : mat -> mat -> complex_mat
Sourceval hess : mat -> mat * mat
Eigenvalues & eigenvectors
Sourceval eig : ?permute:bool -> ?scale:bool -> mat -> complex_mat * complex_mat
Sourceval eigvals : ?permute:bool -> ?scale:bool -> mat -> complex_mat
Linear system of equations
Sourceval null : mat -> mat
Sourceval triangular_solve : upper:bool -> ?trans:bool -> mat -> mat -> mat
Sourceval linreg : mat -> mat -> elt * elt
Low-level factorisation functions
Sourceval lufact : mat -> mat * int32_mat
Sourceval qrfact : ?pivot:bool -> mat -> mat * mat * int32_mat
Sourceval bkfact : ?upper:bool -> ?symmetric:bool -> ?rook:bool -> mat -> mat * int32_mat
Matrix functions
Sourceval mpow : mat -> float -> mat
Sourceval expm : mat -> mat
Sourceval sinm : mat -> mat
Sourceval cosm : mat -> mat
Sourceval tanm : mat -> mat
Sourceval sincosm : mat -> mat * mat
Sourceval sinhm : mat -> mat
Sourceval coshm : mat -> mat
Sourceval tanhm : mat -> mat
Sourceval sinhcoshm : mat -> mat * mat
Helper functions
Sourceval select_ev : [ `LHP | `RHP | `UDI | `UDO ] -> mat -> int32_mat
Sourceval peakflops : ?n:int -> unit -> float
include Owl_linalg_intf.Real with type mat := mat and type elt := elt
include Owl_base_linalg_intf.Real with type mat := mat with type elt := elt
Sourceval care : ?diag_r:bool -> mat -> mat -> mat -> mat -> mat
Sourceval dare : mat -> mat -> mat -> mat -> mat
Sourceval qr : mat -> mat * mat
Sourceval lq : mat -> mat * mat
OCaml

Innovation. Community. Security.