NLToolbox
 All Classes Namespaces Functions
Public Member Functions | Static Public Member Functions | Public Attributes
nltool::PointerSystem Class Reference
Inheritance diagram for nltool::PointerSystem:
nltool::DynamicalSystem

List of all members.

Public Member Functions

 PointerSystem ()
 PointerSystem (int dim, Number(*f)(const int x, const stdVector &pt, void *data), Number(*df)(const int x, const stdVector &pt, const int dx, void *data), Number(*ddf)(const int x, const stdVector &pt, const int dx, const int dy, void *data), void *data, bool discretized=false)
virtual ~PointerSystem ()
Vector eval (const Vector &x)
Vector evalCurvature (const Vector &x, int dx, int dy)
Number getMaxCurvature (const unsigned i, const unsigned dx, const unsigned dy, const Box &domain)

Static Public Member Functions

static double CurvatureFunc (const std::vector< double > &x, std::vector< double > &grad, void *f_data)

Public Attributes

unsigned curvatureFunctionX
unsigned curvatureFunctionDx
unsigned curvatureFunctionDy
void * dataPtr

Constructor & Destructor Documentation

Non-consistent constructor

nltool::PointerSystem::PointerSystem ( int  dim,
Number(*)(const int x, const stdVector &pt, void *data)  f,
Number(*)(const int x, const stdVector &pt, const int dx, void *data)  df,
Number(*)(const int x, const stdVector &pt, const int dx, const int dy, void *data)  ddf,
void *  data,
bool  discretized = false 
)

Creates a dynamical based on function pointer

Parameters:
dimthe system dimension
ffunction to evaluate the dynamics at a given point
dffunction derivated
ddffunction double derivated
discretizedis a discretized system?

Destructor


Member Function Documentation

double nltool::PointerSystem::CurvatureFunc ( const std::vector< double > &  x,
std::vector< double > &  grad,
void *  f_data 
) [static]

Optimization function proxy for the NL opt library

Parameters:
xthe initial guess in input and the optimization solution in output
gradgradient
f_dataadditional information
Returns:
Vector nltool::PointerSystem::eval ( const Vector &  x) [virtual]

Evaluation function

Parameters:
xthe state of the system
Returns:

Reimplemented from nltool::DynamicalSystem.

Vector nltool::PointerSystem::evalCurvature ( const Vector &  x,
int  dx,
int  dy 
)

Return the result of the double derivative of the system

Parameters:
xa point in the state space
dxfirst derivative variable indice in [0, dimension[
dysecond derivative variable indice in [0, dimension[
Returns:
Number nltool::PointerSystem::getMaxCurvature ( const unsigned  i,
const unsigned  dx,
const unsigned  dy,
const Box domain 
)

Compute the partial double derivative of the system

Parameters:
iindice for the system row
dxfirst derivative variable indice in [0, dimension[
dysecond derivative variable indice in [0, dimension[
domaindomain for the optimization
Returns:

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions