NeoPZ
|
#include <fad.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
void | copy (const Fad< R > &rhs) |
Fad () | |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad (const R &x) | |
Fad (const int sz, const T &x) | |
Fad (const int sz, const int i, const T &x) | |
Fad (const int sz, const T &x, const T &dx) | |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad (const Fad< R > &rhs) | |
template<class ExprT > | |
Fad (const FadExpr< ExprT > &fadexpr) | |
~Fad () | |
void | diff (const int ith, const int n) |
const Vector< T > & | dx () const |
const T & | val () const |
T & | val () |
bool | hasFastAccess () const |
T & | fastAccessDx (int i) |
const T & | fastAccessDx (int i) const |
const T & | d (int i) const |
const T & | dx (int i) const |
T | dx (int i) |
int | size () const |
template<class ExprT > | |
Fad< T > & | operator= (const FadExpr< ExprT > &fadexpr) |
FadExpr< FadUnaryPlus< Fad< T > > > | operator+ () const |
FadExpr< FadUnaryMin< Fad< T > > > | operator- () const |
Fad< T > & | operator+= (const T &x) |
Fad< T > & | operator-= (const T &x) |
Fad< T > & | operator*= (const T &x) |
Fad< T > & | operator/= (const T &x) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator+= (const Fad< R > &x) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator-= (const Fad< R > &x) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator*= (const Fad< R > &x) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator/= (const Fad< R > &x) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator= (const R &val) |
template<typename R , typename enable_if< is_convertible< R, T >::value, int >::type * = nullptr> | |
Fad< T > & | operator= (const Fad< R > &rhs) |
int | ClassId () const |
template<class ExprT > | |
Fad< T > & | operator*= (const FadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
Fad< T > & | operator/= (const FadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
Fad< T > & | operator+= (const FadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
Fad< T > & | operator-= (const FadExpr< ExprT > &fadexpr) |
Public Attributes | |
T | defaultVal |
Protected Attributes | |
T | val_ |
Vector< T > | dx_ |
Friends | |
ostream & | operator<< (ostream &stream, const Fad< T > &x) |
istream & | operator>> (istream &stream, Fad< T > &x) |
Additional Inherited Members | |
Protected Member Functions inherited from FadSuper | |
FadSuper () | |
FadSuper (const FadSuper &) | |
~FadSuper () | |
typedef T Fad< T >::value_type |
Definition at line 93 of file fad.h.
References FadExpr< T >::dx(), and FadExpr< T >::size().
int Fad< T >::ClassId | ( | ) | const |
|
inline |
Definition at line 59 of file fad.h.
References Fad< T >::dx(), Vector< T >::size(), and Fad< T >::val().
|
inline |
Definition at line 110 of file fad.h.
Referenced by Fad< T >::copy(), Fad< T >::operator*=(), Fad< T >::operator+=(), Fad< T >::operator-=(), and Fad< T >::operator/=().
|
inline |
Definition at line 124 of file fad.h.
References Vector< T >::size().
|
inline |
Definition at line 125 of file fad.h.
References Vector< T >::size(), and tmp.
|
inline |
|
inline |
|
inline |
Definition at line 115 of file fad.h.
References Vector< T >::size().
|
inline |
Definition at line 188 of file fad.h.
References Vector< T >::begin(), Fad< T >::dx(), Vector< T >::resize(), RESTRICT, Fad< T >::size(), Vector< T >::size(), and Fad< T >::val().
|
inline |
Definition at line 456 of file fad.h.
References FadExpr< T >::dx(), FadExpr< T >::fastAccessDx(), FadExpr< T >::hasFastAccess(), RESTRICT, FadExpr< T >::size(), and FadExpr< T >::val().
|
inline |
|
inline |
Definition at line 140 of file fad.h.
References Vector< T >::begin(), Fad< T >::dx(), Vector< T >::resize(), RESTRICT, Fad< T >::size(), Vector< T >::size(), and Fad< T >::val().
|
inline |
Definition at line 393 of file fad.h.
References FadExpr< T >::dx(), FadExpr< T >::fastAccessDx(), FadExpr< T >::hasFastAccess(), RESTRICT, FadExpr< T >::size(), and FadExpr< T >::val().
|
inline |
|
inline |
Definition at line 164 of file fad.h.
References Vector< T >::begin(), Fad< T >::dx(), Vector< T >::resize(), RESTRICT, Fad< T >::size(), Vector< T >::size(), and Fad< T >::val().
|
inline |
Definition at line 424 of file fad.h.
References FadExpr< T >::dx(), FadExpr< T >::fastAccessDx(), FadExpr< T >::hasFastAccess(), RESTRICT, FadExpr< T >::size(), and FadExpr< T >::val().
|
inline |
Definition at line 220 of file fad.h.
References Vector< T >::begin(), Fad< T >::dx(), Vector< T >::resize(), RESTRICT, Fad< T >::size(), Vector< T >::size(), and Fad< T >::val().
|
inline |
Definition at line 495 of file fad.h.
References FadExpr< T >::dx(), FadExpr< T >::fastAccessDx(), FadExpr< T >::hasFastAccess(), RESTRICT, FadExpr< T >::size(), and FadExpr< T >::val().
|
inline |
Definition at line 315 of file fad.h.
References FadExpr< T >::dx(), FadExpr< T >::fastAccessDx(), FadExpr< T >::hasFastAccess(), RESTRICT, FadExpr< T >::size(), and FadExpr< T >::val().
|
inline |
Definition at line 252 of file fad.h.
References Vector< T >::size(), and val().
|
inline |
Definition at line 262 of file fad.h.
References operator-=().
|
inline |
Definition at line 127 of file fad.h.
References operator+(), operator-(), operator-=(), and Vector< T >::size().
Referenced by Fad< T >::operator*=(), Fad< T >::operator+=(), Fad< T >::operator-=(), and Fad< T >::operator/=().
|
inline |
Definition at line 112 of file fad.h.
Referenced by Fad< T >::copy(), fabs(), operator!(), Fad< T >::operator*=(), Fad< T >::operator+=(), Fad< T >::operator-=(), and Fad< T >::operator/=().
|
friend |
|
friend |