35 #ifndef _BLAZE_MATH_PROBLEMS_BOXLCP_H_
36 #define _BLAZE_MATH_PROBLEMS_BOXLCP_H_
71 inline size_t size ()
const;
72 inline void project (
size_t index );
162 return max(
x_[index] -
ubound( index ),
163 min(
x_[index] -
lbound( index ), (
A_ *
x_ )[index] +
b_[index] ) );
177 for(
size_t i=0; i<
size(); ++i )
Header file for mathematical functions.
VecN xmin_
The lower bound of the BLCP.
Definition: BoxLCP.h:86
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
A box linear complementarity problem (BLCP) data structure.The BoxLCP class represent a box linear co...
Definition: BoxLCP.h:66
real lbound(size_t index) const
Returns the lower bound of the unknown at the given index.
Definition: BoxLCP.h:133
Header file for the floating point precision of the Blaze library.
VecN x_
The vector of unknowns .
Definition: BoxLCP.h:85
size_t size() const
Returns the current size/dimension of the vector.
Definition: DynamicVector.h:1060
VecN xmax_
The upper bound of the BLCP.
Definition: BoxLCP.h:87
Header file for the complete DynamicVector implementation.
void project(size_t index)
Projects the unknown at the given index on the solution range.
Definition: BoxLCP.h:120
real ubound(size_t index) const
Returns the upper bound of the unknown at the given index.
Definition: BoxLCP.h:146
size_t size() const
Returns the size of the BLCP.
Definition: BoxLCP.h:107
double real
Floating point data type of the Blaze library.This type definition offers the possibility to switch t...
Definition: Precision.h:47
VecN b_
The right-hand side vector .
Definition: BoxLCP.h:84
Header file for the complete CompressedMatrix implementation.
Header file for basic type definitions.
real residual() const
Calculates the maximum norm of the residual of the BLCP.
Definition: BoxLCP.h:173
CMatMxN A_
The system matrix .
Definition: BoxLCP.h:83