MADNESS
0.10.1
|
Wrapper around vector demonstrating interface necessary. More...
Public Member Functions | |
Fred (const Fred &f) | |
Fred (const Tensor< double > f, const Tensor< double > x, const Tensor< double > w, const double mu, const double p) | |
Fred (double a, double b, double c) | |
string | a (const string &input) const |
string | b (const string &input) const |
double | get (int i) const |
Tensor< double > | gradient (const Tensor< double > &expnt) |
Should return the derivative of the function. More... | |
Fred | operator* (const double &d) const |
Fred & | operator+= (const Fred &f) |
Fred & | operator= (const Fred &f) |
bool | provides_gradient () const |
Override this to return true if the derivative is implemented. More... | |
void | set (int i, double a) |
double | value (const Tensor< double > &expnt) |
Should return the value of the objective function. More... | |
void | value_and_gradient (const Tensor< double > &expnt, double &value, Tensor< double > &gradient) |
Reimplement if more efficient to evaluate both value and gradient in one call. More... | |
Public Member Functions inherited from madness::OptimizationTargetInterface | |
virtual | ~OptimizationTargetInterface () |
double | test_gradient (Tensor< double > &x, double value_precision, bool doprint=true) |
Numerical test of the derivative ... optionally prints to stdout, returns max abs error. More... | |
Private Member Functions | |
Fred () | |
double | dpenalty (double expnt) const |
Tensor< double > | make_g (const Tensor< double > &expnt) |
Makes the matrix of Gaussians g(i,j) = myexp(-expnt[j]*x[i]x[i]) More... | |
double | penalty (double expnt) const |
Private Attributes | |
const double | alpha |
const Tensor< double > | f |
const double | mu |
const long | nx |
const double | p |
std::vector< double > | v |
const Tensor< double > | w |
const Tensor< double > | x |
Wrapper around vector demonstrating interface necessary.
|
private |
|
inline |
|
inline |
|
inline |
Referenced by main().
|
inline |
Referenced by main().
|
inlineprivate |
References alpha.
Should return the derivative of the function.
Reimplemented from madness::OptimizationTargetInterface.
References errsq(), and madness::g.
Makes the matrix of Gaussians g(i,j) = myexp(-expnt[j]*x[i]x[i])
References madness::g, myexp(), and madness::BaseTensor::size().
|
inline |
References d(), and madness::f.
References madness::f, and v.
References madness::f, and v.
|
inlineprivate |
References alpha.
|
inlinevirtual |
Override this to return true if the derivative is implemented.
Reimplemented from madness::OptimizationTargetInterface.
|
inlinevirtual |
Should return the value of the objective function.
Implements madness::OptimizationTargetInterface.
References errsq().
|
inlinevirtual |
Reimplement if more efficient to evaluate both value and gradient in one call.
Reimplemented from madness::OptimizationTargetInterface.
References c, e(), errsq(), madness::f, madness::g, mu, optimize_coeffs(), p(), pow(), madness::BaseTensor::size(), v, and w().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |