Function lupnt::SolveLinearEqSVD(const MatXd&, const VecXd&)

Function Documentation

VecXd lupnt::SolveLinearEqSVD(const MatXd &A, const VecXd &b)

Solve the linear least-squares system A*x = b via the SVD-based pseudo-inverse (Eigen::JacobiSVD), robust to rank-deficient/ill-conditioned A.

Parameters:
  • A – Coefficient matrix

  • b – Right-hand-side vector

Returns:

Least-squares (minimum-norm) solution x