#include <GteLCPSolver.h>
Public Member Functions | |
LCPSolver () | |
bool | Solve (std::array< Real, n > const &q, std::array< std::array< Real, n >, n > const &M, std::array< Real, n > &w, std::array< Real, n > &z, typename LCPSolverShared< Real >::Result *result=nullptr) |
Public Member Functions inherited from gte::LCPSolverShared< Real > | |
int | GetMaxIterations () const |
int | GetNumIterations () const |
void | SetMaxIterations (int maxIterations) |
Private Attributes | |
std::array< Real, 2 *(n+1)*n > | mArrayAugmented |
std::array< Real, n+1 > | mArrayMinRatio |
std::array< Real *, n > | mArrayPoly |
std::array< Real, n+1 > | mArrayQMin |
std::array< Real, n+1 > | mArrayRatio |
std::array< typename LCPSolverShared< Real >::Variable, n+1 > | mArrayVarBasic |
std::array< typename LCPSolverShared< Real >::Variable, n+1 > | mArrayVarNonbasic |
Additional Inherited Members | |
Public Types inherited from gte::LCPSolverShared< Real > | |
enum | Result { HAS_TRIVIAL_SOLUTION, HAS_NONTRIVIAL_SOLUTION, NO_SOLUTION, FAILED_TO_CONVERGE, INVALID_INPUT } |
Protected Member Functions inherited from gte::LCPSolverShared< Real > | |
Real const & | Augmented (int row, int col) const |
Real & | Augmented (int row, int col) |
void | Copy (Real const *poly0, Real *poly1) |
LCPSolverShared (int n) | |
bool | LessThan (Real const *poly0, Real const *poly1) |
bool | LessThanZero (Real const *poly) |
void | MakeZero (Real *poly) |
void | Multiply (Real const *poly, Real scalar, Real *product) |
bool | Solve (Real const *q, Real const *M, Real *w, Real *z, Result *result) |
Protected Attributes inherited from gte::LCPSolverShared< Real > | |
Real * | mAugmented |
int | mDimension |
int | mMaxIterations |
Real * | mMinRatio |
int | mNumCols |
int | mNumIterations |
Real ** | mPoly |
Real * | mQMin |
Real * | mRatio |
Variable * | mVarBasic |
Variable * | mVarNonbasic |
Definition at line 133 of file GteLCPSolver.h.
gte::LCPSolver< Real, n >::LCPSolver | ( | ) |
Definition at line 537 of file GteLCPSolver.h.
bool gte::LCPSolver< Real, n >::Solve | ( | std::array< Real, n > const & | q, |
std::array< std::array< Real, n >, n > const & | M, | ||
std::array< Real, n > & | w, | ||
std::array< Real, n > & | z, | ||
typename LCPSolverShared< Real >::Result * | result = nullptr |
||
) |
Definition at line 552 of file GteLCPSolver.h.
|
private |
Definition at line 149 of file GteLCPSolver.h.
|
private |
Definition at line 151 of file GteLCPSolver.h.
|
private |
Definition at line 153 of file GteLCPSolver.h.
|
private |
Definition at line 150 of file GteLCPSolver.h.
|
private |
Definition at line 152 of file GteLCPSolver.h.
|
private |
Definition at line 147 of file GteLCPSolver.h.
|
private |
Definition at line 148 of file GteLCPSolver.h.