Implementation of various equation types. More...
#include <hpp/core/comparison-type.hh>
Public Member Functions | |
virtual bool | operator() (vectorOut_t value, matrixOut_t jacobian) const |
Return the result of the comparison. More... | |
virtual bool | operator() (vectorOut_t value) const |
Return the result of the comparison. More... | |
![]() | |
virtual bool | constantRightHandSide () const |
Return whether the right hand side of the comparison is constant. More... | |
Static Public Member Functions | |
static ComparisonTypesPtr_t | create (size_t dim) |
Create a vector of comparisons. More... | |
static ComparisonTypesPtr_t | create (const std::vector< ComparisonType::Type > types) |
Create a vector of comparisons. More... | |
![]() | |
static ComparisonTypePtr_t | createDefault () |
Protected Member Functions | |
ComparisonTypes (const std::vector< ComparisonType::Type > types) | |
Additional Inherited Members | |
![]() | |
enum | Type { Equality, EqualToZero, Superior, Inferior, DoubleInequality } |
typedef std::vector< Type > | VectorOfTypes |
Implementation of various equation types.
This class enable users to define different types of comparison for each component of the function. Comparator for each component is defined by input parameter of ComparisonTypes::create.
|
protected |
|
static |
Create a vector of comparisons.
dim | size of the function output |
Referenced by hpp::core::ProblemSolver::comparisonType().
|
static |
Create a vector of comparisons.
types | vector of comparisons |
|
virtual |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
[in,out] | jacobian | the jacobian to be saturated depending on the value. |
Implements hpp::core::ComparisonType.
|
virtual |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
Implements hpp::core::ComparisonType.