module S:sig..end
typeprec =Bigarray.float32_elt
typenum_type =float
typevec =(float, Bigarray.float32_elt, Bigarray.fortran_layout) Bigarray.Array1.t
typervec =vec
typemat =(float, Bigarray.float32_elt, Bigarray.fortran_layout) Bigarray.Array2.t
typetrans3 =[ `N | `T ]
val prec : (float, Bigarray.float32_elt) Bigarray.kindLacaml.S. Allows to write precision
independent code.module Vec:sig..end
module Mat:sig..end
val pp_num : Format.formatter -> float -> unitpp_num ppf el is equivalent to fprintf ppf "%G" el.val pp_vec : (float, 'a) Lacaml.Io.pp_vecval pp_mat : (float, 'a) Lacaml.Io.pp_matval dot : ?n:int ->
?ofsx:int ->
?incx:int ->
x:vec -> ?ofsy:int -> ?incy:int -> vec -> floatdot ?n ?ofsy ?incy y ?ofsx ?incx x see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1ofsy : default = 1incy : default = 1val asum : ?n:int -> ?ofsx:int -> ?incx:int -> vec -> floatasum ?n ?ofsx ?incx x see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1val sbmv : ?n:int ->
?k:int ->
?ofsy:int ->
?incy:int ->
?y:vec ->
?ar:int ->
?ac:int ->
mat ->
?up:bool ->
?alpha:float ->
?beta:float -> ?ofsx:int -> ?incx:int -> vec -> vecsbmv ?n ?k ?ofsy ?incy ?y ?ar ?ac a ?up ?alpha ?beta ?ofsx ?incx x see
BLAS documentation!y, which is overwritten.n : default = number of available columns to the right of ac.k : default = number of available rows in matrix a - 1ofsy : default = 1incy : default = 1y : default = uninitialized vector of minimal length (see BLAS)ar : default = 1ac : default = 1up : default = true i.e., upper band of a is suppliedalpha : default = 1.0beta : default = 0.0ofsx : default = 1incx : default = 1val ger : ?m:int ->
?n:int ->
?alpha:float ->
?ofsx:int ->
?incx:int ->
vec ->
?ofsy:int ->
?incy:int ->
vec -> ?ar:int -> ?ac:int -> mat -> matger ?m ?n ?alpha ?ofsx ?incx x ?ofsy ?incy y n ?ar ?ac a see
BLAS documentation!a, which is overwrittenm : default = number of rows of an : default = number of columns of aalpha : default = 1.0ofsx : default = 1incx : default = 1ofsy : default = 1incy : default = 1ar : default = 1ac : default = 1val syr : ?n:int ->
?alpha:float ->
?up:bool ->
?ofsx:int ->
?incx:int ->
vec -> ?ar:int -> ?ac:int -> mat -> matsyr ?n ?alpha ?up ?ofsx ?incx x ?ar ?ac a see BLAS documentation!a, which is overwrittenn : default = number of rows of aalpha : default = 1.0up : default = true i.e., upper triangle of a is suppliedofsx : default = 1incx : default = 1ar : default = 1ac : default = 1val lansy_min_lwork : int -> Lacaml.Common.norm4 -> intlansy_min_lwork m normlansy-function.val lansy : ?n:int ->
?up:bool ->
?norm:Lacaml.Common.norm4 ->
?work:vec -> ?ar:int -> ?ac:int -> mat -> floatlansy ?norm ?up ?n ?ar ?ac ?work a see LAPACK documentation!n : default = number of columns of matrix aup : default = true (reference upper triangular part of a)norm : default = `Owork : default = allocated work space for norm `Ival lamch : [ `B | `E | `L | `M | `N | `O | `P | `R | `S | `U ] -> floatlamch cmach see LAPACK documentation!val orgqr_min_lwork : n:int -> intorgqr_min_lwork ~norgqr-function if the matrix has n
columns.val orgqr_opt_lwork : ?m:int ->
?n:int ->
?k:int -> tau:vec -> ?ar:int -> ?ac:int -> mat -> intorgqr_opt_lwork ?m ?n ?k ~tau ?ar ?ac aorgqr-function given matrix a,
optionally its logical dimensions m and n, and the number of reflectors
k.m : default = available number of rows in matrix an : default = available number of columns in matrix ak : default = available number of elements in vector tauval orgqr : ?m:int ->
?n:int ->
?k:int ->
?work:vec ->
tau:vec -> ?ar:int -> ?ac:int -> mat -> unitorgqr ?m ?n ?k ?work ~tau ?ar ?ac a see LAPACK documentation!m : default = available number of rows in matrix an : default = available number of columns in matrix ak : default = available number of elements in vector tauval ormqr_opt_lwork : ?side:Lacaml.Common.side ->
?trans:Lacaml.Common.trans2 ->
?m:int ->
?n:int ->
?k:int ->
tau:vec ->
?ar:int ->
?ac:int -> mat -> ?cr:int -> ?cc:int -> mat -> intormqr_opt_lwork ?side ?trans ?m ?n ?k ~tau ?ar ?ac a ?cr ?cc cormqr-function
given matrix a and b, optionally its logical dimensions m and n,
and the number of reflectors k.m : default = available number of rows in matrix an : default = available number of columns in matrix ak : default = available number of elements in vector tauval ormqr : ?side:Lacaml.Common.side ->
?trans:Lacaml.Common.trans2 ->
?m:int ->
?n:int ->
?k:int ->
?work:vec ->
tau:vec ->
?ar:int ->
?ac:int -> mat -> ?cr:int -> ?cc:int -> mat -> unitormqr ?side ?trans ?m ?n ?k ?work ~tau ?ar ?ac a ?cr ?cc c
see LAPACK documentation!side : default = `Ltrans : default = `Nm : default = available number of rows in matrix an : default = available number of columns in matrix ak : default = available number of elements in vector tauval gecon_min_lwork : int -> intgecon_min_lwork ngecon-function.val gecon_min_liwork : int -> intgecon_min_liwork ngecon-function.val gecon : ?n:int ->
?norm:Lacaml.Common.norm2 ->
?anorm:float ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec -> ?ar:int -> ?ac:int -> mat -> floatgecon ?n ?norm ?anorm ?work ?rwork ?ar ?ac aan : default = available number of columns of matrix anorm : default = 1-normanorm : default = norm of the matrix a as returned by langework : default = automatically allocated workspaceiwork : default = automatically allocated workspacear : default = 1ac : default = 1val sycon_min_lwork : int -> intsycon_min_lwork nsycon-function.val sycon_min_liwork : int -> intsycon_min_liwork nsycon-function.val sycon : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?anorm:float ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec -> ?ar:int -> ?ac:int -> mat -> floatsycon ?n ?up ?ipiv ?anorm ?work ?iwork ?ar ?ac aan : default = available number of columns of matrix aup : default = upper triangle of the factorization of a is storedipiv : default = vec of length nanorm : default = 1-norm of the matrix a as returned by langework : default = automatically allocated workspaceiwork : default = automatically allocated workspaceval pocon_min_lwork : int -> intpocon_min_lwork npocon-function.val pocon_min_liwork : int -> intpocon_min_liwork npocon-function.val pocon : ?n:int ->
?up:bool ->
?anorm:float ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec -> ?ar:int -> ?ac:int -> mat -> floatpocon ?n ?up ?anorm ?work ?iwork ?ar ?ac aan : default = available number of columns of matrix aup : default = upper triangle of Cholesky factorization
of a is storedanorm : default = 1-norm of the matrix a as returned by langework : default = automatically allocated workspaceiwork : default = automatically allocated workspaceval gelsy_min_lwork : m:int -> n:int -> nrhs:int -> intgelsy_min_lwork ~m ~n ~nrhsgelsy-function if the logical dimensions
of the matrix are m rows and n columns and if there are nrhs
right hand side vectors.val gelsy_opt_lwork : ?m:int ->
?n:int ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelsy_opt_lwork ?m ?n ?ar ?ac a ?nrhs ?br ?bc bgelsy-function given matrix
a, optionally its logical dimensions m and n and given right
hand side matrix b with an optional number nrhs of vectors.m : default = available number of rows in matrix an : default = available number of columns in matrix anrhs : default = available number of columns in matrix bval gelsy : ?m:int ->
?n:int ->
?ar:int ->
?ac:int ->
mat ->
?rcond:float ->
?jpvt:Lacaml.Common.int32_vec ->
?work:vec -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelsy ?m ?n ?ar ?ac a ?rcond ?jpvt ?ofswork ?work ?nrhs b see LAPACK
documentation!a.m : default = available number of rows in matrix an : default = available number of columns of matrix arcond : default = (-1) => machine precisionjpvt : default = vec of length nwork : default = vec of optimum length (-> gelsy_opt_lwork)nrhs : default = available number of columns in matrix bval gelsd_min_lwork : m:int -> n:int -> nrhs:int -> intgelsd_min_lwork ~m ~n ~nrhsgelsd-function if the logical dimensions
of the matrix are m and n and if there are nrhs right hand
side vectors.val gelsd_opt_lwork : ?m:int ->
?n:int ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelsd_opt_lwork ?m ?n ?ar ?ac a ?nrhs bgelsd-function given matrix a,
optionally its logical dimensions m and n and given right hand
side matrix b with an optional number nrhs of vectors.m : default = available number of rows in matrix an : default = available number of columns in matrix anrhs : default = available number of columns in matrix bval gelsd_min_iwork : int -> int -> intgelsd_min_iwork m ngelsd-function if the logical
dimensions of the matrix are m and n.val gelsd : ?m:int ->
?n:int ->
?rcond:float ->
?ofss:int ->
?s:vec ->
?work:vec ->
?iwork:vec ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelsd ?m ?n ?rcond ?ofss ?s ?ofswork ?work ?ar ?ac a ?nrhs b
see LAPACK documentation!Failure if the function fails to converge.a.m : default = available number of rows in matrix an : default = available number of columns of matrix arcond : default = (-1) => machine precisionofss : default = 1 or ignored if s is not givens : default = vec of length min rows colswork : default = vec of optimum length (-> gelsd_opt_lwork)iwork : default = vec of optimum (= minimum) lengthnrhs : default = available number of columns in matrix bval gelss_min_lwork : m:int -> n:int -> nrhs:int -> intgelss_min_lwork ~m ~n ~nrhsgelss-function if the logical dimensions
of the matrix are m rows and n columns and if there are nrhs
right hand side vectors.val gelss_opt_lwork : ?ar:int ->
?ac:int ->
mat ->
?m:int -> ?n:int -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelss_opt_lwork ?ar ?ac a ?m ?n ?nrhs ?br ?bc bgelss-function given matrix
a, optionally its logical dimensions m and n and given right
hand side matrix b with an optional number nrhs of vectors.m : default = available number of rows in matrix an : default = available number of columns in matrix anrhs : default = available number of columns in matrix bval gelss : ?m:int ->
?n:int ->
?rcond:float ->
?ofss:int ->
?s:vec ->
?work:vec ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgelss ?m ?n ?rcond ?ofss ?s ?ofswork ?work ?ar ?ac a ?nrhs ?br ?bc b
see LAPACK documentation!Failure if the function fails to converge.a.m : default = available number of rows in matrix an : default = available number of columns of matrix arcond : default = (-1) => machine precisionofss : default = 1 or ignored if s is not givens : default = vec of length min m nwork : default = vec of optimum length (-> gelss_opt_lwork)nrhs : default = available number of columns in matrix bval gesvd_min_lwork : m:int -> n:int -> intgesvd_min_lwork ~m ~ngesvd-function for matrices with m rows and n
columns.val gesvd_opt_lwork : ?m:int ->
?n:int ->
?jobu:Lacaml.Common.svd_job ->
?jobvt:Lacaml.Common.svd_job ->
?s:vec ->
?ur:int ->
?uc:int ->
?u:mat ->
?vtr:int ->
?vtc:int -> ?vt:mat -> ?ar:int -> ?ac:int -> mat -> int
val gesvd : ?m:int ->
?n:int ->
?jobu:Lacaml.Common.svd_job ->
?jobvt:Lacaml.Common.svd_job ->
?s:vec ->
?ur:int ->
?uc:int ->
?u:mat ->
?vtr:int ->
?vtc:int ->
?vt:mat ->
?work:vec ->
?ar:int ->
?ac:int -> mat -> vec * mat * mat
val gesdd_liwork : m:int -> n:int -> int
val gesdd_min_lwork : ?jobz:Lacaml.Common.svd_job -> m:int -> n:int -> unit -> intgesdd_min_lwork ?jobz ~m ~ngesdd-function for matrices with m rows
and n columns for SVD-job jobz.val gesdd_opt_lwork : ?m:int ->
?n:int ->
?jobz:Lacaml.Common.svd_job ->
?s:vec ->
?ur:int ->
?uc:int ->
?u:mat ->
?vtr:int ->
?vtc:int ->
?vt:mat ->
?iwork:Lacaml.Common.int32_vec -> ?ar:int -> ?ac:int -> mat -> int
val gesdd : ?m:int ->
?n:int ->
?jobz:Lacaml.Common.svd_job ->
?s:vec ->
?ur:int ->
?uc:int ->
?u:mat ->
?vtr:int ->
?vtc:int ->
?vt:mat ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec ->
?ar:int ->
?ac:int -> mat -> vec * mat * mat
val geev_min_lwork : ?vectors:bool -> int -> intgeev_min_lwork vectors ngeev-function. vectors indicates whether
eigenvectors are supposed to be computed.vectors : default = trueval geev_opt_lwork : ?n:int ->
?vlr:int ->
?vlc:int ->
?vl:mat option ->
?vrr:int ->
?vrc:int ->
?vr:mat option ->
?ofswr:int ->
?wr:vec ->
?ofswi:int -> ?wi:vec -> ?ar:int -> ?ac:int -> mat -> intgeev_opt_lwork
?n
?vlr ?vlc ?vl
?vrr ?vrc ?vr
?ofswr wr
?ofswi wi
?ar ?ac a
See geev-function for details about arguments.val geev : ?n:int ->
?work:vec ->
?vlr:int ->
?vlc:int ->
?vl:mat option ->
?vrr:int ->
?vrc:int ->
?vr:mat option ->
?ofswr:int ->
?wr:vec ->
?ofswi:int ->
?wi:vec ->
?ar:int ->
?ac:int ->
mat -> mat * vec * vec * matgeev ?work ?n
?vlr ?vlc ?vl
?vrr ?vrc ?vr
?ofswr wr ?ofswi wi
?ar ?ac aFailure if the function fails to convergelv, wr, wi, rv), where wr and wv are the real
and imaginary components of the eigenvalues, and lv and rv
are the left and right eigenvectors. lv (rv) is the empty
matrix if vl (vr) is set to None.n : default = available number of columns of matrix awork : default = automatically allocated workspacevl : default = Automatically allocated left eigenvectors.
Pass None if you do not want to compute them,
Some lv if you want to provide the storage.
You can set vlr, vlc in the last case.
(See LAPACK GEEV docs for details about storage of complex eigenvectors)vr : default = Automatically allocated right eigenvectors.
Pass None if you do not want to compute them,
Some rv if you want to provide the storage.
You can set vrr, vrc in the last case.wr : default = vector of size n; real components of the eigenvalueswi : default = vector of size n;
imaginary components of the eigenvaluesval syev_min_lwork : int -> intsyev_min_lwork nLacaml.S.syev-function if the logical dimensions of the matrix
are n.val syev_opt_lwork : ?n:int ->
?vectors:bool -> ?up:bool -> ?ar:int -> ?ac:int -> mat -> intsyev_opt_lwork ?n ?vectors ?up ?ar ?ac aLacaml.S.syev-function given matrix
a, optionally its logical dimension n and whether the eigenvectors
must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syev : ?n:int ->
?vectors:bool ->
?up:bool ->
?work:vec ->
?ofsw:int ->
?w:vec -> ?ar:int -> ?ac:int -> mat -> vecsyev ?n ?vectors ?up ?ofswork ?work ?ofsw ?w ?ar ?ac a computes
all eigenvalues and, optionally, eigenvectors of the real symmetric
matrix a.Failure if the function fails to converge.w of eigenvalues in ascending order.n : default = available number of columns of matrix avectors : default = false i.e, eigenvectors are not computedup : default = true i.e., upper triangle of a is storedwork : default = vec of optimum length (-> Lacaml.S.syev_opt_lwork)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nval syevd_min_lwork : vectors:bool -> int -> intsyevd_min_lwork vectors nLacaml.S.syevd-function if the logical dimensions of
the matrix are n and given whether eigenvectors should be computed
(vectors).val syevd_min_liwork : vectors:bool -> int -> intsyevd_min_liwork vectors nLacaml.S.syevd-function if the logical dimensions of
the matrix are n and given whether eigenvectors should be computed
(vectors).val syevd_opt_lwork : ?n:int ->
?vectors:bool -> ?up:bool -> ?ar:int -> ?ac:int -> mat -> intsyevd_opt_lwork ?n ?vectors ?up ?ar ?ac aLacaml.S.syevd-function given matrix
a, optionally its logical dimension n and whether the eigenvectors
must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevd_opt_liwork : ?n:int ->
?vectors:bool -> ?up:bool -> ?ar:int -> ?ac:int -> mat -> intsyevd_opt_liwork ?n ?vectors ?up ?ar ?ac aLacaml.S.syevd-function given matrix
a, optionally its logical dimension n and whether the eigenvectors
must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevd_opt_l_li_work : ?n:int ->
?vectors:bool -> ?up:bool -> ?ar:int -> ?ac:int -> mat -> int * intsyevd_opt_l_li_iwork ?n ?vectors ?up ?ar ?ac aLacaml.S.syevd-function given matrix a, optionally its
logical dimension n and whether the eigenvectors must be computed
(vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevd : ?n:int ->
?vectors:bool ->
?up:bool ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec ->
?ofsw:int ->
?w:vec -> ?ar:int -> ?ac:int -> mat -> vecsyevd ?n ?vectors ?up ?ofswork ?work ?iwork ?ofsw ?w ?ar ?ac a
computes all eigenvalues and, optionally, eigenvectors of the real
symmetric matrix a. If eigenvectors are desired, it uses a
divide and conquer algorithm.Failure if the function fails to converge.w of eigenvalues in ascending order.n : default = available number of columns of matrix avectors : default = false i.e, eigenvectors are not computedup : default = true i.e., upper triangle of a is storedwork : default = vec of optimum length (-> Lacaml.S.syev_opt_lwork)iwork : default = int32_vec of optimum length (-> Lacaml.S.syevd_opt_liwork)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nval sbev_min_lwork : int -> intsbev_min_lwork nLacaml.S.sbev-function if the logical dimensions of the matrix
are n.val sbev : ?n:int ->
?kd:int ->
?zr:int ->
?zc:int ->
?z:mat ->
?up:bool ->
?work:vec ->
?ofsw:int ->
?w:vec -> ?abr:int -> ?abc:int -> mat -> vecsbev ?n ?vectors ?zr ?zc ?z ?up ?ofswork ?work ?ofsw ?w ?abr ?abc ab
computes all the eigenvalues and, optionally, eigenvectors of the
real symmetric band matrix ab.Failure if the function fails to converge.Failure if the function fails to converge.w of eigenvalues in ascending order.n : default = available number of columns of matrix abkd : default = number of rows in matrix ab - 1z : matrix to contain the orthonormal eigenvectors of ab,
the i-th column of z holding the eigenvector associated
with w.{i}.
default = None i.e, eigenvectors are not computedup : default = true i.e., upper triangle of the matrix is storedwork : default = vec of minimal length (-> Lacaml.S.sbev_min_lwork)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nabr : default = 1abc : default = 1val syevr_min_lwork : int -> intsyevr_min_lwork nLacaml.S.syevr-function if the logical dimensions
of the matrix are n.val syevr_min_liwork : int -> intsyevr_min_liwork nLacaml.S.syevr-function if the logical dimensions
of the matrix are n.val syevr_opt_lwork : ?n:int ->
?vectors:bool ->
?range:[ `A | `I of int * int | `V of float * float ] ->
?up:bool -> ?abstol:float -> ?ar:int -> ?ac:int -> mat -> intsyevr_opt_lwork ?n ?vectors ?range ?up ?abstol ?ar ?ac aLacaml.S.syevr-function
given matrix a, optionally its logical dimension n and whether
the eigenvectors must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevr_opt_liwork : ?n:int ->
?vectors:bool ->
?range:[ `A | `I of int * int | `V of float * float ] ->
?up:bool -> ?abstol:float -> ?ar:int -> ?ac:int -> mat -> intsyevr_opt_liwork ?n ?vectors ?range ?up ?abstol ?ar ?ac aLacaml.S.syevr-function
given matrix a, optionally its logical dimension n and whether
the eigenvectors must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevr_opt_l_li_work : ?n:int ->
?vectors:bool ->
?range:[ `A | `I of int * int | `V of float * float ] ->
?up:bool -> ?abstol:float -> ?ar:int -> ?ac:int -> mat -> int * intsyevr_opt_l_li_iwork ?n ?vectors ?range ?up ?abstol ?ar ?ac aLacaml.S.syevr-function given matrix a,
optionally its logical dimension n and whether the eigenvectors
must be computed (vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storedval syevr : ?n:int ->
?vectors:bool ->
?range:[ `A | `I of int * int | `V of float * float ] ->
?up:bool ->
?abstol:float ->
?work:vec ->
?iwork:Lacaml.Common.int32_vec ->
?ofsw:int ->
?w:vec ->
?zr:int ->
?zc:int ->
?z:mat ->
?isuppz:Lacaml.Common.int32_vec ->
?ar:int ->
?ac:int ->
mat -> int * vec * mat * Lacaml.Common.int32_vecsyevr
?n ?vectors ?range ?up ?abstol ?work ?iwork
?ofsw ?w ?zr ?zc ?z ?isuppz ?ar ?ac a
range is either `A for computing all eigenpairs, `V (vl, vu)
defines the lower and upper range of computed eigenvalues, `I (il,
iu) defines the indexes of the computed eigenpairs, which are sorted
in ascending order.(m, w, z, isuppz), where m is the number
of computed eigenpairs, vector w contains the computed
eigenvalues in ascending order, z contains the computed
eigenvectors in same order, and isuppz indicates the
nonzero elements in z.n : default = available number of columns of matrix avectors : default = false i.e, eigenvectors are not computedrange : default = `Aup : default = true i.e., upper triangle of a is storedabstol : default = result of calling lamch `Swork : default = vec of optimum length (-> Lacaml.S.syev_opt_lwork)iwork : default = int32_vec of optimum length (-> Lacaml.S.syevr_opt_liwork)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nzr : default = 1zc : default = 1z : default = matrix with minimal required dimensionisuppz : default = int32_vec with minimal required dimensionar : default = 1ac : default = 1val sygv_opt_lwork : ?n:int ->
?vectors:bool ->
?up:bool ->
?itype:[ `AB | `A_B | `BA ] ->
?ar:int ->
?ac:int -> mat -> ?br:int -> ?bc:int -> mat -> intsygv_opt_lwork ?n ?vectors ?up ?ar ?ac a ?br ?bc bLacaml.S.sygv-function
for the given matrices a and b, optionally their logical
dimension n and whether the eigenvectors must be computed
(vectors).n : default = available number of columns of matrix avectors : default = false, i.e. eigenvectors are not computedup : default = true, i.e. upper triangle of a is storeditype : specifies the problem type to be solved:`A_B (default): a*x = (lambda)*a*x`AB: a*b*x = (lambda)*x`BA: b*a*x = (lambda)*xval sygv : ?n:int ->
?vectors:bool ->
?up:bool ->
?work:vec ->
?ofsw:int ->
?w:vec ->
?itype:[ `AB | `A_B | `BA ] ->
?ar:int ->
?ac:int -> mat -> ?br:int -> ?bc:int -> mat -> vecsygv ?n ?vectors ?up ?ofswork ?work ?ofsw ?w ?ar ?ac a
computes all the eigenvalues, and optionally, the eigenvectors
of a real generalized symmetric-definite eigenproblem, of the
form a*x=(lambda)*b*x, a*b*x=(lambda)*x, or b*a*x=(lambda)*x.
Here a and b are assumed to be symmetric and b is also
positive definite.Failure if the function fails to converge.w of eigenvalues in ascending order.n : default = available number of columns of matrix avectors : default = false i.e, eigenvectors are not computedup : default = true i.e., upper triangle of a is storedwork : default = vec of optimum length (-> Lacaml.S.sygv_opt_lwork)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nitype : specifies the problem type to be solved:`A_B (default): a*x = (lambda)*a*x`AB: a*b*x = (lambda)*x`BA: b*a*x = (lambda)*xval sbgv : ?n:int ->
?ka:int ->
?kb:int ->
?zr:int ->
?zc:int ->
?z:mat ->
?up:bool ->
?work:vec ->
?ofsw:int ->
?w:vec ->
?ar:int ->
?ac:int -> mat -> ?br:int -> ?bc:int -> mat -> vecsbgv ?n ?ka ?kb ?zr ?zc ?z ?up ?work ?ofsw ?w ?ar ?ac a ?br ?bc b
computes all the eigenvalues, and optionally, the eigenvectors of a
real generalized symmetric-definite banded eigenproblem, of the
form a*x=(lambda)*b*x. Here a and b are assumed to be
symmetric and banded, and b is also positive definite.Failure if the function fails to converge.w of eigenvalues in ascending order.n : default = available number of columns of matrix aka : the number of superdiagonals (or subdiagonals if up = false)
of the matrix a. Default = dim1 a - ar.kb : same as ka but for the matrix b.z : default = None i.e, eigenvectors are not computedup : default = true i.e., upper triangle of a is storedwork : default = vec of optimum length (3 * n)ofsw : default = 1 or ignored if w is not givenw : default = vec of length nval swap : ?n:int ->
?ofsx:int ->
?incx:int -> x:vec -> ?ofsy:int -> ?incy:int -> vec -> unitswap ?n ?ofsx ?incx ~x ?ofsy ?incy y see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1ofsy : default = 1incy : default = 1val scal : ?n:int -> num_type -> ?ofsx:int -> ?incx:int -> vec -> unitscal ?n alpha ?ofsx ?incx x see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1val copy : ?n:int ->
?ofsy:int ->
?incy:int ->
?y:vec -> ?ofsx:int -> ?incx:int -> vec -> veccopy ?n ?ofsy ?incy ?y ?ofsx ?incx x see BLAS documentation!y, which is overwritten.n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsy : default = 1incy : default = 1y : default = new vector with ofsy+(n-1)(abs incy) rowsofsx : default = 1incx : default = 1val nrm2 : ?n:int -> ?ofsx:int -> ?incx:int -> vec -> floatnrm2 ?n ?ofsx ?incx x see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1val axpy : ?n:int ->
?alpha:num_type ->
?ofsx:int ->
?incx:int -> x:vec -> ?ofsy:int -> ?incy:int -> vec -> unitaxpy ?n ?alpha ?ofsx ?incx ~x ?ofsy ?incy y see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xalpha : default = { re = 1.; im = 0. }ofsx : default = 1incx : default = 1ofsy : default = 1incy : default = 1val iamax : ?n:int -> ?ofsx:int -> ?incx:int -> vec -> intiamax ?n ?ofsx ?incx x see BLAS documentation!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1val amax : ?n:int -> ?ofsx:int -> ?incx:int -> vec -> num_typeamax ?n ?ofsx ?incx xx.n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xofsx : default = 1incx : default = 1val gemv : ?m:int ->
?n:int ->
?beta:num_type ->
?ofsy:int ->
?incy:int ->
?y:vec ->
?trans:trans3 ->
?alpha:num_type ->
?ar:int ->
?ac:int ->
mat -> ?ofsx:int -> ?incx:int -> vec -> vecgemv ?m ?n ?beta ?ofsy ?incy ?y ?trans ?alpha ?ar ?ac a ?ofsx ?incx x
see BLAS documentation! BEWARE that the 1988 BLAS-2 specification
mandates that this function has no effect when n=0 while the
mathematically expected behabior is y ← beta * y.y, which is overwritten.m : default = number of available rows in matrix an : default = available columns in matrix abeta : default = { re = 0.; im = 0. }ofsy : default = 1incy : default = 1y : default = vector with minimal required length (see BLAS)trans : default = `Nalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1ofsx : default = 1incx : default = 1val gbmv : ?m:int ->
?n:int ->
?beta:num_type ->
?ofsy:int ->
?incy:int ->
?y:vec ->
?trans:trans3 ->
?alpha:num_type ->
?ar:int ->
?ac:int ->
mat ->
int -> int -> ?ofsx:int -> ?incx:int -> vec -> vecgbmv
?m ?n ?beta ?ofsy ?incy ?y ?trans ?alpha ?ar ?ac a kl ku ?ofsx ?incx x
see BLAS documentation!y, which is overwritten.m : default = same as n (i.e., a is a square matrix)n : default = available number of columns in matrix abeta : default = { re = 0.; im = 0. }ofsy : default = 1incy : default = 1y : default = vector with minimal required length (see BLAS)trans : default = `Nalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1ofsx : default = 1incx : default = 1val symv : ?n:int ->
?beta:num_type ->
?ofsy:int ->
?incy:int ->
?y:vec ->
?up:bool ->
?alpha:num_type ->
?ar:int ->
?ac:int ->
mat -> ?ofsx:int -> ?incx:int -> vec -> vecsymv ?n ?beta ?ofsy ?incy ?y ?up ?alpha ?ar ?ac a ?ofsx ?incx x
see BLAS documentation!y, which is overwritten.n : default = dimension of symmetric matrix abeta : default = { re = 0.; im = 0. }ofsy : default = 1incy : default = 1y : default = vector with minimal required length (see BLAS)up : default = true (upper triangular portion of a is accessed)alpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1ofsx : default = 1incx : default = 1val trmv : ?n:int ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?up:bool ->
?ar:int ->
?ac:int -> mat -> ?ofsx:int -> ?incx:int -> vec -> unittrmv ?n ?trans ?diag ?up ?ar ?ac a ?ofsx ?incx x
see BLAS documentation!n : default = dimension of triangular matrix atrans : default = `Ndiag : default = false (not a unit triangular matrix)up : default = true (upper triangular portion of a is accessed)ar : default = 1ac : default = 1ofsx : default = 1incx : default = 1val trsv : ?n:int ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?up:bool ->
?ar:int ->
?ac:int -> mat -> ?ofsx:int -> ?incx:int -> vec -> unittrsv ?n ?trans ?diag ?up ?ar ?ac a ?ofsx ?incx x
see BLAS documentation!n : default = dimension of triangular matrix atrans : default = `Ndiag : default = false (not a unit triangular matrix)up : default = true (upper triangular portion of a is accessed)ar : default = 1ac : default = 1ofsx : default = 1incx : default = 1val tpmv : ?n:int ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?up:bool ->
?ofsap:int -> vec -> ?ofsx:int -> ?incx:int -> vec -> unittpmv ?n ?trans ?diag ?up ?ofsap ap ?ofsx ?incx x
see BLAS documentation!n : default = dimension of packed triangular matrix aptrans : default = `Ndiag : default = false (not a unit triangular matrix)up : default = true (upper triangular portion of ap is accessed)ofsap : default = 1ofsx : default = 1incx : default = 1val tpsv : ?n:int ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?up:bool ->
?ofsap:int -> vec -> ?ofsx:int -> ?incx:int -> vec -> unittpsv ?n ?trans ?diag ?up ?ofsap ap ?ofsx ?incx x
see BLAS documentation!n : default = dimension of packed triangular matrix aptrans : default = `Ndiag : default = false (not a unit triangular matrix)up : default = true (upper triangular portion of ap is accessed)ofsap : default = 1ofsx : default = 1incx : default = 1val gemm : ?m:int ->
?n:int ->
?k:int ->
?beta:num_type ->
?cr:int ->
?cc:int ->
?c:mat ->
?transa:trans3 ->
?alpha:num_type ->
?ar:int ->
?ac:int ->
mat ->
?transb:trans3 -> ?br:int -> ?bc:int -> mat -> matgemm ?m ?n ?k ?beta ?cr ?cc ?c ?transa ?alpha ?ar ?ac a ?transb ?br ?bc b
see BLAS documentation!c, which is overwritten.m : default = number of rows of a (or tr a) and cn : default = number of columns of b (or tr b) and ck : default = number of columns of a (or tr a) and
number of rows of b (or tr b)beta : default = { re = 0.; im = 0. }cr : default = 1cc : default = 1c : default = matrix with minimal required dimensiontransa : default = `Nalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1transb : default = `Nbr : default = 1bc : default = 1val symm : ?m:int ->
?n:int ->
?side:Lacaml.Common.side ->
?up:bool ->
?beta:num_type ->
?cr:int ->
?cc:int ->
?c:mat ->
?alpha:num_type ->
?ar:int ->
?ac:int -> mat -> ?br:int -> ?bc:int -> mat -> matsymm ?m ?n ?side ?up ?beta ?cr ?cc ?c ?alpha ?ar ?ac a ?br ?bc b
see BLAS documentation!c, which is overwritten.m : default = number of rows of cn : default = number of columns of cside : default = `L (left - multiplication is ab)up : default = true (upper triangular portion of a is accessed)beta : default = { re = 0.; im = 0. }cr : default = 1cc : default = 1c : default = matrix with minimal required dimensionalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1br : default = 1bc : default = 1val trmm : ?m:int ->
?n:int ->
?side:Lacaml.Common.side ->
?up:bool ->
?transa:trans3 ->
?diag:Lacaml.Common.diag ->
?alpha:num_type ->
?ar:int ->
?ac:int -> a:mat -> ?br:int -> ?bc:int -> mat -> unittrmm ?m ?n ?side ?up ?transa ?diag ?alpha ?ar ?ac ~a ?br ?bc b
see BLAS documentation!m : default = number of rows of bn : default = number of columns of bside : default = `L (left - multiplication is ab)up : default = true (upper triangular portion of a is accessed)transa : default = `Ndiag : default = `N (non-unit)alpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1br : default = 1bc : default = 1val trsm : ?m:int ->
?n:int ->
?side:Lacaml.Common.side ->
?up:bool ->
?transa:trans3 ->
?diag:Lacaml.Common.diag ->
?alpha:num_type ->
?ar:int ->
?ac:int -> a:mat -> ?br:int -> ?bc:int -> mat -> unittrsm ?m ?n ?side ?up ?transa ?diag ?alpha ?ar ?ac ~a ?br ?bc b
see BLAS documentation!b, which is overwritten.m : default = number of rows of bn : default = number of columns of bside : default = `L (left - multiplication is ab)up : default = true (upper triangular portion of a is accessed)transa : default = `Ndiag : default = `N (non-unit)alpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1br : default = 1bc : default = 1val syrk : ?n:int ->
?k:int ->
?up:bool ->
?beta:num_type ->
?cr:int ->
?cc:int ->
?c:mat ->
?trans:Lacaml.Common.trans2 ->
?alpha:num_type ->
?ar:int -> ?ac:int -> mat -> matsyrk ?n ?k ?up ?beta ?cr ?cc ?c ?trans ?alpha ?ar ?ac a
see BLAS documentation!c, which is overwritten.n : default = number of rows of a (or a'), ck : default = number of columns of a (or a')up : default = true (upper triangular portion of c is accessed)beta : default = { re = 0.; im = 0. }cr : default = 1cc : default = 1c : default = matrix with minimal required dimensiontrans : default = `Nalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1val syr2k : ?n:int ->
?k:int ->
?up:bool ->
?beta:num_type ->
?cr:int ->
?cc:int ->
?c:mat ->
?trans:Lacaml.Common.trans2 ->
?alpha:num_type ->
?ar:int ->
?ac:int -> mat -> ?br:int -> ?bc:int -> mat -> matsyr2k ?n ?k ?up ?beta ?cr ?cc ?c ?trans ?alpha ?ar ?ac a ?br ?bc b
see BLAS documentation!c, which is overwritten.n : default = number of rows of a (or a'), ck : default = number of columns of a (or a')up : default = true (upper triangular portion of c is accessed)beta : default = { re = 0.; im = 0. }cr : default = 1cc : default = 1c : default = matrix with minimal required dimensiontrans : default = `Nalpha : default = { re = 1.; im = 0. }ar : default = 1ac : default = 1br : default = 1bc : default = 1val lacpy : ?uplo:[ `L | `U ] ->
?m:int ->
?n:int ->
?br:int ->
?bc:int ->
?b:mat -> ?ar:int -> ?ac:int -> mat -> matlacpy ?uplo ?m ?n ?br ?bc ?b ?ar ?ac a copy a (triangular)
(sub-)matrix a (to an optional (sub-)matrix b).uplo : default = whole matrixval lassq : ?n:int ->
?scale:float ->
?sumsq:float -> ?ofsx:int -> ?incx:int -> vec -> float * floatlassq ?n ?ofsx ?incx ?scale ?sumsq(scl, ssq), where
scl is a scaling factor and ssq the sum of squares of vector
x starting at ofs and using increment incx and initial
scale and sumsq. The following equality holds:
scl**2. *. ssq = x.{1}**2. +. ... +. x.{n}**2. +. scale**2. *. sumsq.
See LAPACK-documentation for details!n : default = greater n s.t. ofsx+(n-1)(abs incx) <= dim xscale : default = 0.sumsq : default = 1.ofsx : default = 1incx : default = 1val larnv : ?idist:[ `Normal | `Uniform0 | `Uniform1 ] ->
?iseed:Lacaml.Common.int32_vec ->
?n:int -> ?ofsx:int -> ?x:vec -> unit -> veclarnv ?idist ?iseed ?n ?ofsx ?x ()idist, random seed
iseed, vector offset ofsx and optional vector x.idist : default = `Normaliseed : default = integer vector of size 4 with all ones.n : default = length of x if x is provided, 1 otherwise.ofsx : default = 1x : default = vector of length n if n is provided.val lange_min_lwork : int -> Lacaml.Common.norm4 -> intlange_min_lwork m normlange-function.val lange : ?m:int ->
?n:int ->
?norm:Lacaml.Common.norm4 ->
?work:rvec -> ?ar:int -> ?ac:int -> mat -> floatlange ?m ?n ?norm ?work ?ar ?ac anorm = `O), or the Frobenius norm (norm = `F), or the infinity
norm (norm = `I), or the element of largest absolute value
(norm = `M) of a real matrix a.m : default = number of rows of matrix an : default = number of columns of matrix anorm : default = `Owork : default = allocated work space for norm `Iar : default = 1ac : default = 1val lauum : ?up:bool -> ?n:int -> ?ar:int -> ?ac:int -> mat -> unitlauum ?up ?n ?ar ?ac a computes the product U * U**T or L**T * L,
where the triangular factor U or L is stored in the upper or lower
triangular part of the array a. The upper or lower part of a
is overwritten.up : default = truen : default = minimum of available number of rows/columns in matrix aar : default = 1ac : default = 1val getrf : ?m:int ->
?n:int ->
?ipiv:Lacaml.Common.int32_vec ->
?ar:int -> ?ac:int -> mat -> Lacaml.Common.int32_vecgetrf ?m ?n ?ipiv ?ar ?ac a computes an LU factorization of a
general m-by-n matrix a using partial pivoting with row
interchanges. See LAPACK documentation.Failure if the matrix is singular.ipiv, the pivot indices.m : default = number of rows in matrix an : default = number of columns in matrix aipiv : = vec of length min(m, n)ar : default = 1ac : default = 1val getrs : ?n:int ->
?ipiv:Lacaml.Common.int32_vec ->
?trans:trans3 ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitgetrs ?n ?ipiv ?trans ?ar ?ac a ?nrhs ?br ?bc b solves a system
of linear equations a * X = b or a' * X = b with a general
n-by-n matrix a using the LU factorization computed by
Lacaml.S.getrf.
Note that matrix a will be passed to Lacaml.S.getrf if ipiv was not
provided.Failure if the matrix is singular.n : default = number of columns in matrix aipiv : default = result from getrf applied to atrans : default = `Nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val getri_min_lwork : int -> intgetri_min_lwork nLacaml.S.getri-function if the matrix has n columns.val getri_opt_lwork : ?n:int -> ?ar:int -> ?ac:int -> mat -> intgetri_opt_lwork ?n ?ar ?ac aLacaml.S.getri-function.n : default = number of columns of matrix aar : default = 1ac : default = 1val getri : ?n:int ->
?ipiv:Lacaml.Common.int32_vec ->
?work:vec -> ?ar:int -> ?ac:int -> mat -> unitgetri ?n ?ipiv ?work ?ar ?ac a computes the inverse of a matrix
using the LU factorization computed by Lacaml.S.getrf. Note that matrix
a will be passed to Lacaml.S.getrf if ipiv was not provided.Failure if the matrix is singular.n : default = number of columns in matrix aipiv : default = vec of length m from getriwork : default = vec of optimum lengthar : default = 1ac : default = 1val sytrf_min_lwork : unit -> intsytrf_min_lwork ()Lacaml.S.sytrf-function.val sytrf_opt_lwork : ?n:int -> ?up:bool -> ?ar:int -> ?ac:int -> mat -> intsytrf_opt_lwork ?n ?up ?ar ?ac aLacaml.S.sytrf-function.n : default = number of columns of matrix aup : default = true (store upper triangle in a)ar : default = 1ac : default = 1val sytrf : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?work:vec ->
?ar:int -> ?ac:int -> mat -> Lacaml.Common.int32_vecsytrf ?n ?up ?ipiv ?work ?ar ?ac a computes the factorization of
the real symmetric matrix a using the Bunch-Kaufman diagonal
pivoting method.Failure if D in a = U*D*U' or L*D*L' is singular.n : default = number of columns in matrix aup : default = true (store upper triangle in a)ipiv : = vec of length nwork : default = vec of optimum lengthar : default = 1ac : default = 1val sytrs : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitsytrs ?n ?up ?ipiv ?ar ?ac a ?nrhs ?br ?bc b solves a system of
linear equations a*X = b with a real symmetric matrix a
using the factorization a = U*D*U**T or a = L*D*L**T computed
by Lacaml.S.sytrf. Note that matrix a will be passed to Lacaml.S.sytrf if
ipiv was not provided.Failure if the matrix is singular.n : default = number of columns in matrix aup : default = true (store upper triangle in a)ipiv : default = vec of length nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val sytri_min_lwork : int -> intsytri_min_lwork nLacaml.S.sytri-function if the matrix has n columns.val sytri : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?work:vec -> ?ar:int -> ?ac:int -> mat -> unitsytri ?n ?up ?ipiv ?work ?ar ?ac a computes the inverse of the
real symmetric indefinite matrix a using the factorization a =
U*D*U**T or a = L*D*L**T computed by Lacaml.S.sytrf. Note that matrix
a will be passed to Lacaml.S.sytrf if ipiv was not provided.Failure if the matrix is singular.n : default = number of columns in matrix aup : default = true (store upper triangle in a)work : default = vec of optimum lengthar : default = 1ac : default = 1val potrf : ?n:int ->
?up:bool ->
?ar:int -> ?ac:int -> ?jitter:num_type -> mat -> unitpotrf ?n ?up ?ar ?ac ?jitter a factorizes symmetric positive
definite matrix a (or the designated submatrix) using Cholesky
factorization.
Due to rounding errors ill-conditioned matrices may actually appear
as if they were not positive definite, thus leading to an exception.
One remedy for this problem is to add a small jitter to the
diagonal of the matrix, which will usually allow Cholesky to complete
successfully (though at a small bias). For extremely ill-conditioned
matrices it is recommended to use (symmetric) eigenvalue decomposition
instead of this function for a numerically more stable factorization.
Raises Failure if the matrix is singular.
n : default = number of columns in matrix aup : default = true (store upper triangle in a)ar : default = 1ac : default = 1jitter : default = nothingval potrs : ?n:int ->
?up:bool ->
?ar:int ->
?ac:int ->
mat ->
?nrhs:int ->
?br:int ->
?bc:int ->
?factorize:bool -> ?jitter:num_type -> mat -> unitpotrs ?n ?up ?ar ?ac a ?nrhs ?br ?bc ?factorize ?jitter b solves
a system of linear equations a*X = b, where a is symmetric
positive definite matrix, using the Cholesky factorization a =
U**T*U or a = L*L**T computed by Lacaml.S.potrf.Failure if the matrix is singular.n : default = number of columns in matrix aup : default = truear : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1factorize : default = true (calls Lacaml.S.potrf implicitly)jitter : default = nothingval potri : ?n:int ->
?up:bool ->
?ar:int ->
?ac:int ->
?factorize:bool -> ?jitter:num_type -> mat -> unitpotri ?n ?up ?ar ?ac ?factorize ?jitter a computes the inverse
of the real symmetric positive definite matrix a using the
Cholesky factorization a = U**T*U or a = L*L**T computed by
Lacaml.S.potrf.Failure if the matrix is singular.n : default = number of columns in matrix aup : default = true (upper triangle stored in a)ar : default = 1ac : default = 1factorize : default = true (calls Lacaml.S.potrf implicitly)jitter : default = nothingval trtrs : ?n:int ->
?up:bool ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unittrtrs ?n ?up ?trans ?diag ?ar ?ac a ?nrhs ?br ?bc b solves a
triangular system of the form a * X = b or a**T * X = n,
where a is a triangular matrix of order n, and b is an
n-by-nrhs matrix.Failure if the matrix a is singular.n : default = number of columns in matrix aup : default = truetrans : default = `Ndiag : default = `Nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val tbtrs : ?n:int ->
?kd:int ->
?up:bool ->
?trans:trans3 ->
?diag:Lacaml.Common.diag ->
?abr:int ->
?abc:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unittbtrs ?n ?kd ?up ?trans ?diag ?abr ?abc ab ?nrhs ?br ?bc b
solves a triangular system of the form a * X = b or a**T * X = b,
where a is a triangular band matrix of order n, and b is
an n-by-nrhs matrix.Failure if the matrix a is singular.n : default = number of columns in matrix abkd : default = number of rows in matrix ab - 1up : default = truetrans : default = `Ndiag : default = `Nabr : default = 1abc : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val trtri : ?n:int ->
?up:bool ->
?diag:Lacaml.Common.diag -> ?ar:int -> ?ac:int -> mat -> unittrtri ?n ?up ?diag ?ar ?ac a computes the inverse of a real
upper or lower triangular matrix a.Failure if the matrix a is singular.n : default = number of columns in matrix aup : default = true (upper triangle stored in a)diag : default = `Nar : default = 1ac : default = 1val geqrf_opt_lwork : ?m:int -> ?n:int -> ?ar:int -> ?ac:int -> mat -> intgeqrf_opt_lwork ?m ?n ?ar ?ac aLacaml.S.geqrf-function given matrix
a and optionally its logical dimensions m and n.m : default = number of rows in matrix an : default = number of columns in matrix aar : default = 1ac : default = 1val geqrf_min_lwork : n:int -> intgeqrf_min_lwork ~nLacaml.S.geqrf-function if the matrix has n
columns.val geqrf : ?m:int ->
?n:int ->
?work:vec ->
?tau:vec -> ?ar:int -> ?ac:int -> mat -> vecgeqrf ?m ?n ?work ?tau ?ar ?ac a computes a QR factorization of
a real m-by-n matrix a. See LAPACK documentation.tau, the scalar factors of the elementary reflectors.m : default = number of rows in matrix an : default = number of columns in matrix awork : default = vec of optimum lengthtau : default = vec of required lengthar : default = 1ac : default = 1val gesv : ?n:int ->
?ipiv:Lacaml.Common.int32_vec ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitgesv ?n ?ipiv ?ar ?ac a ?nrhs ?br ?bc b computes the solution to
a real system of linear equations a * X = b, where a is an
n-by-n matrix and X and b are n-by-nrhs matrices. The
LU decomposition with partial pivoting and row interchanges is
used to factor a as a = P * L * U, where P is a permutation
matrix, L is unit lower triangular, and U is upper triangular.
The factored form of a is then used to solve the system of
equations a * X = b. On exit, b contains the solution matrix X.Failure if the matrix a is singular.n : default = available number of columns in matrix aipiv : default = vec of length nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val gbsv : ?n:int ->
?ipiv:Lacaml.Common.int32_vec ->
?abr:int ->
?abc:int ->
mat ->
int -> int -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitgbsv ?n ?ipiv ?abr ?abc ab kl ku ?nrhs ?br ?bc b computes the
solution to a real system of linear equations a * X = b, where
a is a band matrix of order n with kl subdiagonals and ku
superdiagonals, and X and b are n-by-nrhs matrices. The LU
decomposition with partial pivoting and row interchanges is used
to factor a as a = L * U, where L is a product of permutation and
unit lower triangular matrices with kl subdiagonals, and U is
upper triangular with kl+ku superdiagonals. The factored form of
a is then used to solve the system of equations a * X = b.Failure if the matrix a is singular.n : default = available number of columns in matrix abipiv : default = vec of length nabr : default = 1abc : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val gtsv : ?n:int ->
?ofsdl:int ->
vec ->
?ofsd:int ->
vec ->
?ofsdu:int ->
vec -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitgtsv ?n ?ofsdl dl ?ofsd d ?ofsdu du ?nrhs ?br ?bc b solves the
equation a * X = b where a is an n-by-n tridiagonal
matrix, by Gaussian elimination with partial pivoting. Note that
the equation A'*X = b may be solved by interchanging the order
of the arguments du and dl.Failure if the matrix is singular.n : default = available length of vector dofsdl : default = 1ofsd : default = 1ofsdu : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val posv : ?n:int ->
?up:bool ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitposv ?n ?up ?ar ?ac a ?nrhs ?br ?bc b computes the solution to a
real system of linear equations a * X = b, where a is an
n-by-n symmetric positive definite matrix and X and b are
n-by-nrhs matrices. The Cholesky decomposition is used to
factor a as
a = U**T * U, if up = true, or
a = L * L**T, if up = false,
where U is an upper triangular matrix and L is a lower triangular
matrix. The factored form of a is then used to solve the system
of equations a * X = b.Failure if the matrix is singular.n : default = available number of columns in matrix aup : default = true i.e., upper triangle of a is storedar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val ppsv : ?n:int ->
?up:bool ->
?ofsap:int ->
vec -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitppsv ?n ?up ?ofsap ap ?nrhs ?br ?bc b computes the solution to
the real system of linear equations a * X = b, where a is an
n-by-n symmetric positive definite matrix stored in packed
format and X and b are n-by-nrhs matrices. The Cholesky
decomposition is used to factor a as
a = U**T * U, if up = true, or
a = L * L**T, if up = false,
where U is an upper triangular matrix and L is a lower triangular
matrix. The factored form of a is then used to solve the system
of equations a * X = b.Failure if the matrix is singular.n : default = the greater n s.t. n(n+1)/2 <= Vec.dim apup : default = true i.e., upper triangle of ap is storedofsap : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val pbsv : ?n:int ->
?up:bool ->
?kd:int ->
?abr:int ->
?abc:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitpbsv ?n ?up ?kd ?abr ?abc ab ?nrhs ?br ?bc b computes the
solution to a real system of linear equations a * X = b, where
a is an n-by-n symmetric positive definite band matrix and X
and b are n-by-nrhs matrices. The Cholesky decomposition is
used to factor a as
a = U**T * U, if up = true, or
a = L * L**T, if up = false,
where U is an upper triangular band matrix, and L is a lower
triangular band matrix, with the same number of superdiagonals or
subdiagonals as a. The factored form of a is then used to
solve the system of equations a * X = b.Failure if the matrix is singular.n : default = available number of columns in matrix abup : default = true i.e., upper triangle of ab is storedkd : default = available number of rows in matrix ab - 1abr : default = 1abc : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val ptsv : ?n:int ->
?ofsd:int ->
vec ->
?ofse:int ->
vec -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitptsv ?n ?ofsd d ?ofse e ?nrhs ?br ?bc b computes the solution to
the real system of linear equations a*X = b, where a is an
n-by-n symmetric positive definite tridiagonal matrix, and X
and b are n-by-nrhs matrices. A is factored as a =
L*D*L**T, and the factored form of a is then used to solve the
system of equations.Failure if the matrix is singular.n : default = available length of vector dofsd : default = 1ofse : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val sysv_opt_lwork : ?n:int ->
?up:bool ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intsysv_opt_lwork ?n ?up ?ar ?ac a ?nrhs ?br ?bc bsysv-function given matrix
a, optionally its logical dimension n and given right hand side
matrix b with an optional number nrhs of vectors.n : default = available number of columns in matrix aup : default = true i.e., upper triangle of a is storedar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val sysv : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?work:vec ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitsysv ?n ?up ?ipiv ?work ?ar ?ac a ?nrhs ?br ?bc b computes the
solution to a real system of linear equations a * X = b, where
a is an N-by-N symmetric matrix and X and b are n-by-nrhs
matrices. The diagonal pivoting method is used to factor a as
a = U * D * U**T, if up = true, or
a = L * D * L**T, if up = false,
where U (or L) is a product of permutation and unit upper (lower)
triangular matrices, and D is symmetric and block diagonal with
1-by-1 and 2-by-2 diagonal blocks. The factored form of a is
then used to solve the system of equations a * X = b.Failure if the matrix is singular.n : default = available number of columns in matrix aup : default = true i.e., upper triangle of a is storedipiv : default = vec of length nwork : default = vec of optimum length (-> sysv_opt_lwork)ar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val spsv : ?n:int ->
?up:bool ->
?ipiv:Lacaml.Common.int32_vec ->
?ofsap:int ->
vec -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitspsv ?n ?up ?ipiv ?ofsap ap ?nrhs ?br ?bc b computes the
solution to the real system of linear equations a * X = b,
where a is an n-by-n symmetric matrix stored in packed
format and X and b are n-by-nrhs matrices. The diagonal
pivoting method is used to factor a as
a = U * D * U**T, if up = true, or
a = L * D * L**T, if up = false,
where U (or L) is a product of permutation and unit upper (lower)
triangular matrices, D is symmetric and block diagonal with 1-by-1
and 2-by-2 diagonal blocks. The factored form of a is then used
to solve the system of equations a * X = b.Failure if the matrix is singular.n : default = the greater n s.t. n(n+1)/2 <= Vec.dim apup : default = true i.e., upper triangle of ap is storedipiv : default = vec of length nofsap : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val gels_min_lwork : m:int -> n:int -> nrhs:int -> intgels_min_lwork ~m ~n ~nrhsgels-function if the logical dimensions
of the matrix are m rows and n columns and if there are nrhs
right hand side vectors.val gels_opt_lwork : ?m:int ->
?n:int ->
?trans:Lacaml.Common.trans2 ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> intgels_opt_lwork ?m ?n ?trans ?ar ?ac a ?nrhs ?br ?bc bgels-function given
matrix a, optionally its logical dimensions m and n and given
right hand side matrix b with an optional number nrhs of vectors.m : default = available number of rows in matrix an : default = available number of columns in matrix atrans : default = `Nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1val gels : ?m:int ->
?n:int ->
?work:vec ->
?trans:Lacaml.Common.trans2 ->
?ar:int ->
?ac:int ->
mat -> ?nrhs:int -> ?br:int -> ?bc:int -> mat -> unitgels ?m ?n ?work ?trans ?ar ?ac a ?nrhs ?br ?bc b see
LAPACK documentation!m : default = available number of rows in matrix an : default = available number of columns of matrix awork : default = vec of optimum length (-> Lacaml.S.gels_opt_lwork)trans : default = `Nar : default = 1ac : default = 1nrhs : default = available number of columns in matrix bbr : default = 1bc : default = 1