Public Member Functions | |
| PowerFunctor (const double &p) | |
| virtual void | eval1 (const double *const x, int nx, double *f, double *df) const |
| virtual void | eval0 (const double *const x, int nx, double *f) const |
| virtual void | eval2 (const double *const x, int nx, double *f, double *df_dx, double *d2f_dxx) const |
| virtual void | eval3 (const double *const x, int nx, double *f, double *df_dx, double *d2f_dxx, double *d3f_dxxx) const |
Static Public Member Functions | |
| static RCP< FunctorDomain > | powerDomain (const double &p) |
Protected Member Functions | |
| bool | acceptX (int diffOrder, const double &x) const |
Private Attributes | |
| double | p_ |
| bool | powerIsInteger_ |
Definition at line 58 of file SundanceStdMathFunctors.hpp.
| PowerFunctor::PowerFunctor | ( | const double & | p | ) |
Definition at line 51 of file SundanceStdMathFunctors.cpp.
| bool Sundance::PowerFunctor::acceptX | ( | int | diffOrder, |
| const double & | x | ||
| ) | const [inline, protected] |
Definition at line 90 of file SundanceStdMathFunctors.hpp.
References p_, and powerIsInteger_.
| 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 325 of file SundanceStdMathFunctors.cpp.
References acceptX(), 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 81 of file SundanceStdMathFunctors.cpp.
References acceptX(), 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 246 of file SundanceStdMathFunctors.cpp.
References acceptX(), 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 153 of file SundanceStdMathFunctors.cpp.
References acceptX(), Sundance::UnaryFunctor::checkResults(), Sundance::UnaryFunctor::name(), p_, and Sundance::pow().
| RCP< FunctorDomain > PowerFunctor::powerDomain | ( | const double & | p | ) | [static] |
Definition at line 58 of file SundanceStdMathFunctors.cpp.
References Sundance::UnboundedDomain().
double Sundance::PowerFunctor::p_ [private] |
bool Sundance::PowerFunctor::powerIsInteger_ [private] |
Definition at line 105 of file SundanceStdMathFunctors.hpp.
Referenced by acceptX().