MBSim

Project Page
Public Member Functions | Protected Member Functions
MBSim::LocalResidualCriteriaFunction Class Reference

This criteria function class applies the infinity norm on single indices sets (each with another tolerance) and compares it with zero (i.e. a residual criteria) More...

#include <criteria_functions.h>

Inheritance diagram for MBSim::LocalResidualCriteriaFunction:
MBSim::LocalCriteriaFunction MBSim::CriteriaFunction MBSim::Function1< int, fmatvec::Vec >

List of all members.

Public Member Functions

 LocalResidualCriteriaFunction (const std::map< fmatvec::Index, double > &tolerances_)
 Constructor.
virtual ~LocalResidualCriteriaFunction ()
 Destructor.
- Public Member Functions inherited from MBSim::LocalCriteriaFunction
 LocalCriteriaFunction (const std::map< fmatvec::Index, double > &tolerances_)
 Constructor.
virtual ~LocalCriteriaFunction ()
 Destructor.
virtual int operator() (const fmatvec::Vec &vector, const void *=NULL)
 computes the criteria
virtual bool isBetter (const fmatvec::Vec &vector)
 compares the result of given vector with the last result and returns if it got better (for damping)
virtual void clear ()
 deletes the list of criteria results
virtual void setTolerances (const std::map< fmatvec::Index, double > &tolerances_)
- Public Member Functions inherited from MBSim::CriteriaFunction
 CriteriaFunction ()
 Constructor.
virtual ~CriteriaFunction ()
 Destructor.
void setFunction (Function1< fmatvec::Vec, fmatvec::Vec > *function_)
- Public Member Functions inherited from MBSim::Function1< int, fmatvec::Vec >
virtual ~Function1 ()
 destructor
virtual void initializeUsingXML (TiXmlElement *element)
 initialize function with XML code

Protected Member Functions

virtual std::vector< double > computeResults (const fmatvec::Vec &x)

Additional Inherited Members

- Protected Attributes inherited from MBSim::LocalCriteriaFunction
std::map< fmatvec::Index, double > tolerances
std::vector< std::vector
< double > > 
criteriaResults
 saves the results of the criteria for each index set and each operator step
- Protected Attributes inherited from MBSim::CriteriaFunction
Function1< fmatvec::Vec,
fmatvec::Vec > * 
function
 function that computes the values

Detailed Description

This criteria function class applies the infinity norm on single indices sets (each with another tolerance) and compares it with zero (i.e. a residual criteria)


The documentation for this class was generated from the following file: