11 #ifndef BOGUS_LCPLAW_HPP
12 #define BOGUS_LCPLAW_HPP
25 template <
typename Scalar >
29 enum{ dimension = 1 } ;
37 Scalar
eval(
const unsigned problemIndex,
38 const typename Traits::Vector &x,
39 const typename Traits::Vector &y )
const ;
46 const unsigned problemIndex,
47 const typename Traits::Matrix &A,
48 const typename Traits::Vector &b,
49 typename Traits::Vector &x,
57 template<
typename Segment >
59 typename Traits::Vector& s )
const
void projectOnConstraint(const unsigned problemIndex, typename Traits::Vector &x) const
Projects x on .
LCPLaw()
Constructor.
Definition: LCPLaw.hpp:34
bool solveLocal(const unsigned problemIndex, const typename Traits::Matrix &A, const typename Traits::Vector &b, typename Traits::Vector &x, const Scalar scaling) const
Solves the local problem.
LCP local solver that can be used within GaussSeidel and ProjectedGradient solvers.
Definition: LCPLaw.hpp:26
void dualityCOV(const unsigned, const Segment &, typename Traits::Vector &s) const
This NSLaw is always associated, so dualityCOV is null.
Definition: LCPLaw.hpp:58
Definition: EigenProblemTraits.hpp:38
Scalar eval(const unsigned problemIndex, const typename Traits::Vector &x, const typename Traits::Vector &y) const