Public Member Functions | Private Attributes
Sundance::PowerFunctor Class Reference
Inheritance diagram for Sundance::PowerFunctor:
Sundance::UnaryFunctor

List of all members.

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_

Detailed Description

Definition at line 48 of file SundanceStdMathFunctors.hpp.


Constructor & Destructor Documentation

PowerFunctor::PowerFunctor ( const double &  p)

Definition at line 39 of file SundanceStdMathFunctors.cpp.


Member Function Documentation

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().


Member Data Documentation

double Sundance::PowerFunctor::p_ [private]

Definition at line 78 of file SundanceStdMathFunctors.hpp.

Referenced by eval0(), eval1(), eval2(), and eval3().

Site Contact