Function Karana::Math::solveLcpPgs

Function Karana::Math::solveLcpPgs#

Function Documentation#

Vec Karana::Math::solveLcpPgs(const Mat &M, const Vec &q, unsigned int max_iter = 1000, double tolerance = 1e-6)#

LCP solver based on Projected Gauss-Siedel (PGS) method.

Parameters:
  • M – the matrix

  • q – the vector

  • max_iter – the maximum number of iterations

  • tolerance – the tolerance value

Returns:

the solution vector