#include <ncompconstraint.h>
Public Member Functions | |
NCompConstraintSet () | |
Creates a new empty constraint set. | |
~NCompConstraintSet () | |
Destroys this constraint set. | |
template<class T> bool | isSatisfied (const NVector< T > &first, const NVector< T > &second) const |
Determines whether the given pair of vectors satisfies every constraint in this set. | |
template<class T> bool | isSatisfied (const NVector< T > &v) const |
Determines whether the given vector satisfies every constraint in this set. |
A compatibility constraint set represents a set of necessary and sufficient conditions for two valid vectors to be compatible. See class NCompConstraint for details on the concept of compatibility.
|
Creates a new empty constraint set.
|
|
Destroys this constraint set. All individual constraints belonging to this set will be deallocated. |
|
Determines whether the given vector satisfies every constraint in this set. Although constraints are defined in terms of pairs of vectors, a single vector can also be said to satisfy a constraint if the number of non-zero coordinates amongst the given set of coordinate positions is at most the given maximum. Examining whether a single vector v satisfies a constraint is equivalent to deciding whether the pair (v, v) or equivalently the pair (v, 0) satisfies the constraint.
|
|
Determines whether the given pair of vectors satisfies every constraint in this set.
|