35 #ifndef _BLAZE_MATH_PROBLEMS_LCP_H_
36 #define _BLAZE_MATH_PROBLEMS_LCP_H_
73 inline size_t size ()
const;
74 inline void project (
size_t index );
122 x_[index] = max( 0,
x_[index] );
161 return min(
x_[index], (
A_ *
x_ )[index] +
b_[index] );
175 for(
size_t i=0; i<
size(); ++i )
Header file for mathematical functions.
size_t size() const
Returns the size of the linear complementarity problem.
Definition: LCP.h:107
VecN x_
The vector of unknowns .
Definition: LCP.h:87
const StaticMatrix< Type, 3UL, 3UL, false > fabs(const RotationMatrix< Type > &m)
Returns a matrix containing the absolute values of each single element of m.
Definition: RotationMatrix.h:1102
CMatMxN A_
The system matrix .
Definition: LCP.h:85
real lbound(size_t index) const
Returns the lower bound of the unknown at the given index.
Definition: LCP.h:133
Header file for the floating point precision of the Blaze library.
Numerical infinity for built-in data types.
size_t size() const
Returns the current size/dimension of the vector.
Definition: DynamicVector.h:1050
Header file for the complete DynamicVector implementation.
void project(size_t index)
Projects the unknown at the given index on the solution range.
Definition: LCP.h:120
const Infinity inf
Global Infinity instance.The blaze::inf instance can be used wherever a built-in data type is expecte...
Definition: Infinity.h:1098
double real
Floating point data type of the Blaze library.This type definition offers the possibility to switch t...
Definition: Precision.h:47
real ubound(size_t index) const
Returns the upper bound of the unknown at the given index.
Definition: LCP.h:146
VecN b_
The right-hand side vector .
Definition: LCP.h:86
Header file for the complete CompressedMatrix implementation.
Header file for basic type definitions.
A linear complementarity problem (LCP) data structure.The LCP class represent a linear complementarit...
Definition: LCP.h:67
real residual() const
Calculates the maximum norm of the residual of the linear complementarity problem.
Definition: LCP.h:171