SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::helper::LCP Class Reference

#include <LCPcalc.h>

Public Attributes

int it
 
double error
 

Public Member Functions

 LCP ()
 
 ~LCP ()
 
void reset (void)
 
void allocate (unsigned int maxConst)
 
double ** getW (void)
 
doublegetMu (void)
 
doublegetDfree (void)
 
double getTolerance (void)
 
double getMaxIter (void)
 
doublegetF (void)
 
doublegetF_1 (void)
 
doublegetD (void)
 
bool useInitialGuess (void)
 
unsigned int getDim (void)
 
unsigned int setDim (unsigned int nbC)
 
unsigned int getMaxConst (void)
 
void setNumItMax (int input_numItMax)
 
void setTol (double input_tol)
 
void setLCP (unsigned int input_dim, double *input_dfree, double **input_W, double *input_f, double &input_mu, double &input_tol, int input_numItMax)
 
void solveNLCP (bool convergenceTest, std::vector< double > *residuals=nullptr, std::vector< double > *violations=nullptr)
 

Attribute details

double sofa::helper::LCP::error
int sofa::helper::LCP::it

Constructor details

sofa::helper::LCP::LCP ( )
sofa::helper::LCP::~LCP ( )

Function details

void sofa::helper::LCP::allocate ( unsigned int  maxConst)
double* sofa::helper::LCP::getD ( void  )
inline
double* sofa::helper::LCP::getDfree ( void  )
inline
unsigned int sofa::helper::LCP::getDim ( void  )
inline
double* sofa::helper::LCP::getF ( void  )
inline
double* sofa::helper::LCP::getF_1 ( void  )
inline
unsigned int sofa::helper::LCP::getMaxConst ( void  )
inline
double sofa::helper::LCP::getMaxIter ( void  )
inline
double& sofa::helper::LCP::getMu ( void  )
inline
double sofa::helper::LCP::getTolerance ( void  )
inline
double** sofa::helper::LCP::getW ( void  )
inline
void sofa::helper::LCP::reset ( void  )
unsigned int sofa::helper::LCP::setDim ( unsigned int  nbC)
inline
void sofa::helper::LCP::setLCP ( unsigned int  input_dim,
double input_dfree,
double **  input_W,
double input_f,
double input_mu,
double input_tol,
int  input_numItMax 
)
void sofa::helper::LCP::setNumItMax ( int  input_numItMax)
inline
void sofa::helper::LCP::setTol ( double  input_tol)
inline
void sofa::helper::LCP::solveNLCP ( bool  convergenceTest,
std::vector< double > *  residuals = nullptr,
std::vector< double > *  violations = nullptr 
)
bool sofa::helper::LCP::useInitialGuess ( void  )
inline