ANIMA
4.0
src
Anima
math-tools
optimizers
nlopt_optimizers
animaNLOPTParametersConstraintFunction.cxx
Go to the documentation of this file.
1
#include <
animaNLOPTParametersConstraintFunction.h
>
2
3
namespace
anima
4
{
5
6
double
7
NLOPTParametersConstraintFunction
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
anima::NLOPTParametersConstraintFunction::InternalComputeConstraint
virtual double InternalComputeConstraint(unsigned int numParameters, const double *dataValue, double *gradValue)=0
anima::NLOPTParametersConstraintFunction::GetConstraintValue
static double GetConstraintValue(unsigned int n, const double *x, double *grad, void *data)
Definition:
animaNLOPTParametersConstraintFunction.cxx:8
anima::NLOPTParametersConstraintFunction::ConstraintDataType
Definition:
animaNLOPTParametersConstraintFunction.h:22
animaNLOPTParametersConstraintFunction.h
anima::NLOPTParametersConstraintFunction::ConstraintDataType::constraintPointer
Self * constraintPointer
Definition:
animaNLOPTParametersConstraintFunction.h:24
anima
Definition:
animaDTIEstimationImageFilter.h:7
Generated by
1.8.13