You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algorithms in square-root form have several advantages in terms of numerical stability. This is especially pertinent for algorithms that require matrices to stay positive-semidefinite even though eigenvalues might approach zero.
Notation
$A, B, C, ...$ Positive semidefinite matrices
$G$ General matrix
$I$ Identity matrix
$Q$ Unitary matrix
Basic definitions
Matrix square root.
$$
A = L_A L_A^T = U_A^T U_A
$$
Cholesky
Cholesky (lower) decomposition is defined for positive-semidefinite matrices.
$$
L_A = \text{chol}(A)
$$
QR decomposition
QR decomposition is defined for real rectangular matrices.
$$
Q_A U_A = \text{qr}(AA)
$$
which satisfies our square-root form as,
$$
Q^T Q = I
$$$$
(Q_A U_A)^T (Q_A U_A) = U_A^T Q^T Q U_A = U_A^T I U_A = U_A^T U_A = AA
$$
Relation to Cholesky decomposition for PSD matrices.
$$
L_A = U_A^T
$$
Square-formulae
Outer products
$$
A = G B G^T
$$
$$
L_A L_A^T= G L_B (G L_B)^T = G L_B L_B^T G^T = G B G^T
$$
$$
\implies L_A = G L_B
$$
Inner products
$$
A = G^T B G
$$
$$
L_A L_A^T= G^T L_B (G^T L_B)^T = G^T L_B L_B^T G = G^T B G
$$
$$
\implies L_A = G^T L_B
$$
Multiple terms with QR trick
$$
A = B + G C G^T
$$
Notice that,
$$
\begin{bmatrix} L_B & G L_C \end{bmatrix} \begin{bmatrix} L_B^T \ (G L_C)^T \end{bmatrix} = L_B L_B^T + G L_C (G L_C)^T = B + G C G^T = A
$$