No matching definitions.

linalg/decomp

src/linalg/decomp.tur

matrix decompositions (Cholesky, LU, QR)

defstruct

chol-factor

(defstruct chol-factor [])

result of a Cholesky decomposition A = L L'.

defstruct

lu-factor

(defstruct lu-factor [])

result of LU decomposition PA = LU.

defstruct

qr-factor

(defstruct qr-factor [])

result of QR decomposition A = QR.

defn

chol

(chol [A] :int)

Cholesky decomposition (Cholesky-Banachiewicz algorithm)

The Cholesky-Banachiewicz algorithm computes the lower triangular matrix L such that A = L * L'. A must be symmetric positive-definite. The algorithm detects non-SPD matrices by checking for non-positive pivots.

defn

chol-free

(chol-free [f] :void)

free a Cholesky factor

defn

lu

(lu [A] :int)

LU decomposition with partial pivoting (Doolittle algorithm)

defn

lu-free

(lu-free [f] :void)

free an LU factor

defn

qr

(qr [A] :int)

QR decomposition via Householder reflections

Uses Householder reflections to compute Q (orthogonal) and R (upper triangular). Q is computed as a product of Householder matrices and is m x m. R is m x n and upper triangular.

defn

qr-free

(qr-free [f] :void)

free a QR factor