Public Member Functions | |
| PowerFunctor (const double &p) | |
| virtual void | eval1 (const double *const x, int nx, double *f, double *df) const |
| Evaluate power function and deriv at an array of values. | |
| virtual void | eval0 (const double *const x, int nx, double *f) const |
| Evaluate power function at an array of values. | |
| virtual void | eval2 (const double *const x, int nx, double *f, double *df_dx, double *d2f_dxx) const |
| Evaluate power function and first two derivs at an array of values. | |
| virtual void | eval3 (const double *const x, int nx, double *f, double *df_dx, double *d2f_dxx, double *d3f_dxxx) const |
| Evaluate power function and first three derivs at an array of values. | |
Private Attributes | |
| double | p_ |
Definition at line 48 of file SundanceStdMathFunctors.hpp.
| PowerFunctor::PowerFunctor | ( | const double & | p | ) |
Definition at line 39 of file SundanceStdMathFunctors.cpp.
| void PowerFunctor::eval0 | ( | const double *const | x, |
| int | nx, | ||
| double * | f | ||
| ) | const [virtual] |
Evaluate power function at an array of values.
Implements Sundance::UnaryFunctor.
Definition at line 250 of file SundanceStdMathFunctors.cpp.
References Sundance::UnaryFunctor::checkResults(), Sundance::UnaryFunctor::name(), p_, and Sundance::pow().
| void PowerFunctor::eval1 | ( | const double *const | x, |
| int | nx, | ||
| double * | f, | ||
| double * | df | ||
| ) | const [virtual] |
Evaluate power function and deriv at an array of values.
Reimplemented from Sundance::UnaryFunctor.
Definition at line 43 of file SundanceStdMathFunctors.cpp.
References Sundance::UnaryFunctor::checkResults(), Sundance::UnaryFunctor::name(), p_, and Sundance::pow().
| void PowerFunctor::eval2 | ( | const double *const | x, |
| int | nx, | ||
| double * | f, | ||
| double * | df_dx, | ||
| double * | d2f_dxx | ||
| ) | const [virtual] |
Evaluate power function and first two derivs at an array of values.
Reimplemented from Sundance::UnaryFunctor.
Definition at line 103 of file SundanceStdMathFunctors.cpp.
References Sundance::UnaryFunctor::checkResults(), Sundance::UnaryFunctor::name(), p_, and Sundance::pow().
| void PowerFunctor::eval3 | ( | const double *const | x, |
| int | nx, | ||
| double * | f, | ||
| double * | df_dx, | ||
| double * | d2f_dxx, | ||
| double * | d3f_dxxx | ||
| ) | const [virtual] |
Evaluate power function and first three derivs at an array of values.
Reimplemented from Sundance::UnaryFunctor.
Definition at line 169 of file SundanceStdMathFunctors.cpp.
References Sundance::UnaryFunctor::checkResults(), Sundance::UnaryFunctor::name(), p_, and Sundance::pow().
double Sundance::PowerFunctor::p_ [private] |