Function lupnt::UDUDecomposition¶
Defined in File udu_utils.cc
Function Documentation¶
-
VecMatPair lupnt::UDUDecomposition(const MatXd &P)¶
Factor a symmetric positive-(semi)definite covariance matrix as
P = U diag(D) U^T, withUunit upper-triangular andDdiagonal.Used by
UDUEKF::SetUdto (re)factor the filter covariance after initialization and after eachPredictstep, enabling the square-root-style sequentialCarlsonUpdate. Diagonal entries ofDthat are numerically zero (within1e-16) are clamped to exactly zero.- Parameters:
P – Symmetric covariance matrix to factor, size [n x n]
- Returns:
Pair
(D, U): diagonal factorD(size [n]) and unit-upper-triangular factorU(size [n x n])