ANIMA  4.0
animaNLOPTParametersConstraintFunction.cxx
Go to the documentation of this file.
2 
3 namespace anima
4 {
5 
6 double
8 ::GetConstraintValue(unsigned int n, const double *x, double *grad, void *data)
9 {
10  ConstraintDataType *dataCast = (ConstraintDataType *)data;
11 
12  return dataCast->constraintPointer->InternalComputeConstraint(n, x, grad);
13 }
14 
15 } // end namespace anima
virtual double InternalComputeConstraint(unsigned int numParameters, const double *dataValue, double *gradValue)=0
static double GetConstraintValue(unsigned int n, const double *x, double *grad, void *data)