Public Member Functions | |
ADReal () | |
ADReal (double value, int direction, int spatialDimension) | |
ADReal (double value, int spatialDimension) | |
ADReal (double value, const Point &gradient) | |
ADReal | operator- () const |
ADReal & | operator+= (const ADReal &other) |
ADReal & | operator-= (const ADReal &other) |
ADReal & | operator*= (const ADReal &other) |
ADReal & | operator/= (const ADReal &other) |
ADReal & | operator+= (const double &scalar) |
ADReal & | operator-= (const double &scalar) |
ADReal & | operator*= (const double &scalar) |
ADReal & | operator/= (const double &scalar) |
ADReal | operator+ (const ADReal &other) const |
ADReal | operator- (const ADReal &other) const |
ADReal | operator* (const ADReal &other) const |
ADReal | operator/ (const ADReal &other) const |
ADReal | operator+ (const double &scalar) const |
ADReal | operator- (const double &scalar) const |
ADReal | operator* (const double &scalar) const |
ADReal | operator/ (const double &scalar) const |
const double & | value () const |
const Point & | gradient () const |
void | reciprocate () |
Static Public Member Functions | |
static double & | totalFlops () |
static void | addFlops (const double &flops) |
Private Attributes | |
double | value_ |
Point | gradient_ |
Related Functions | |
(Note that these are not member functions.) | |
ADReal | operator+ (const double &scalar, const ADReal &a) |
ADReal | operator- (const double &scalar, const ADReal &a) |
ADReal | operator* (const double &scalar, const ADReal &a) |
ADReal | operator/ (const double &scalar, const ADReal &a) |
Definition at line 46 of file SundanceADReal.hpp.
Sundance::ADReal::ADReal | ( | ) | [inline] |
Create an ADReal with value and gradient = 0
Definition at line 50 of file SundanceADReal.hpp.
Sundance::ADReal::ADReal | ( | double | value, | |
int | direction, | |||
int | spatialDimension | |||
) | [inline] |
Create an ADReal object that varies linearly with one coordinate direction
Definition at line 53 of file SundanceADReal.hpp.
References gradient_.
Sundance::ADReal::ADReal | ( | double | value, | |
int | spatialDimension | |||
) | [inline] |
Create a constant-valued ADReal object in a multidimensional space
Definition at line 62 of file SundanceADReal.hpp.
References gradient_.
Sundance::ADReal::ADReal | ( | double | value, | |
const Point & | gradient | |||
) | [inline] |
Create an ADReal with the specified value and gradient
Definition at line 71 of file SundanceADReal.hpp.
static void Sundance::ADReal::addFlops | ( | const double & | flops | ) | [inline, static] |
Definition at line 122 of file SundanceADReal.hpp.
References totalFlops().
Referenced by operator*=(), operator+=(), operator-(), operator-=(), operator/=(), and reciprocate().
const Point& Sundance::ADReal::gradient | ( | ) | const [inline] |
get the gradient
Definition at line 115 of file SundanceADReal.hpp.
References gradient_.
Referenced by std::operator<<(), and Sundance::pow().
ADReal ADReal::operator* | ( | const double & | scalar | ) | const |
scalar multiplication
Definition at line 144 of file SundanceADReal.cpp.
multiplication
Definition at line 32 of file SundanceADReal.cpp.
ADReal & ADReal::operator*= | ( | const double & | scalar | ) |
reflexive scalar multiplication
Definition at line 108 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
reflexive multiplication
Definition at line 66 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
ADReal ADReal::operator+ | ( | const double & | scalar | ) | const |
scalar addition
Definition at line 130 of file SundanceADReal.cpp.
addition
Definition at line 18 of file SundanceADReal.cpp.
ADReal & ADReal::operator+= | ( | const double & | scalar | ) |
reflexive scalar addition
Definition at line 93 of file SundanceADReal.cpp.
References addFlops(), and value_.
reflexive addition
Definition at line 46 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
ADReal ADReal::operator- | ( | const double & | scalar | ) | const |
scalar subtraction
Definition at line 137 of file SundanceADReal.cpp.
subtraction
Definition at line 25 of file SundanceADReal.cpp.
ADReal ADReal::operator- | ( | ) | const |
unary minus
Definition at line 8 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
ADReal & ADReal::operator-= | ( | const double & | scalar | ) |
reflexive scalar subtraction
Definition at line 100 of file SundanceADReal.cpp.
References addFlops(), and value_.
reflexive subtraction
Definition at line 56 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
ADReal ADReal::operator/ | ( | const double & | scalar | ) | const |
scalar division
Definition at line 151 of file SundanceADReal.cpp.
division
Definition at line 39 of file SundanceADReal.cpp.
ADReal & ADReal::operator/= | ( | const double & | scalar | ) |
reflexive scalar division
Definition at line 118 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
reflexive division
Definition at line 76 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
void ADReal::reciprocate | ( | ) |
Definition at line 184 of file SundanceADReal.cpp.
References addFlops(), Sundance::Point::dim(), gradient_, and value_.
Referenced by Sundance::operator/().
static double& Sundance::ADReal::totalFlops | ( | ) | [inline, static] |
const double& Sundance::ADReal::value | ( | ) | const [inline] |
get the value
Definition at line 113 of file SundanceADReal.hpp.
References value_.
Referenced by Sundance::Legendre::evalOnLine(), Sundance::CubicHermite::evalOnLine(), Sundance::Legendre::evalOnQuad(), Sundance::Lagrange::evalOnquad(), Sundance::Lagrange::evalOnTriangle(), Sundance::EdgeLocalizedBasis::evalOnTriangle(), Sundance::CubicHermite::evalOnTriangle(), Sundance::Bubble::evalOnTriangle(), Sundance::Bernstein::evalOnTriangle(), std::operator<<(), Sundance::pow(), and Sundance::RaviartThomas::refEval().
Definition at line 171 of file SundanceADReal.cpp.
Definition at line 161 of file SundanceADReal.cpp.
Definition at line 166 of file SundanceADReal.cpp.
Definition at line 176 of file SundanceADReal.cpp.
Point Sundance::ADReal::gradient_ [private] |
Definition at line 125 of file SundanceADReal.hpp.
Referenced by ADReal(), gradient(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), and reciprocate().
double Sundance::ADReal::value_ [private] |
Definition at line 124 of file SundanceADReal.hpp.
Referenced by operator*=(), operator+=(), operator-(), operator-=(), operator/=(), reciprocate(), and value().