Function lupnt::SolveLinearEqSVD(const MatXd&, const VecXd&)¶
Defined in File math_utils.cc
Function Documentation¶
-
VecXd lupnt::SolveLinearEqSVD(const MatXd &A, const VecXd &b)¶
Solve the linear least-squares system
A*x = bvia the SVD-based pseudo-inverse (Eigen::JacobiSVD), robust to rank-deficient/ill-conditionedA.- Parameters:
A – Coefficient matrix
b – Right-hand-side vector
- Returns:
Least-squares (minimum-norm) solution
x