NeoPZ
|
#include <tfad.h>
Public Types | |
typedef T | value_type |
typedef GetArithmeticType< T >::type | arithmetic_type |
Public Member Functions | |
void | copy (const TFad< Num, T > &rhs) |
TFad () | |
TFad (const T &x) | |
TFad (const T &x, const int i) | |
TFad (const TFad< Num, T > &x) | |
template<class ExprT > | |
TFad (const TFadExpr< ExprT > &fadexpr) | |
~TFad () | |
void | diff (const int ith, const int n) |
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 |
TFad< Num, T > & | operator= (const T &val) |
TFad< Num, T > & | operator= (const TFad< Num, T > &rhs) |
template<class ExprT > | |
TFad< Num, T > & | operator= (const TFadExpr< ExprT > &fadexpr) |
TFadExpr< TFadUnaryPlus< TFad< Num, T > > > | operator+ () const |
TFadExpr< TFadUnaryMin< TFad< Num, T > > > | operator- () const |
TFad< Num, T > & | operator+= (const T &x) |
TFad< Num, T > & | operator-= (const T &x) |
TFad< Num, T > & | operator*= (const T &x) |
TFad< Num, T > & | operator/= (const T &x) |
TFad< Num, T > & | operator+= (const TFad< Num, T > &x) |
TFad< Num, T > & | operator-= (const TFad< Num, T > &x) |
TFad< Num, T > & | operator*= (const TFad< Num, T > &x) |
TFad< Num, T > & | operator/= (const TFad< Num, T > &x) |
template<class ExprT > | |
TFad< Num, T > & | operator*= (const TFadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
TFad< Num, T > & | operator/= (const TFadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
TFad< Num, T > & | operator+= (const TFadExpr< ExprT > &fadexpr) |
template<class ExprT > | |
TFad< Num, T > & | operator-= (const TFadExpr< ExprT > &fadexpr) |
int | ClassId () const override |
Define the class id associated with the class. More... | |
template<typename TEMP = void> | |
std::enable_if< is_arithmetic_pz< T >::value, TEMP >::type | Read (TPZStream &buf, void *context) |
read objects from the stream More... | |
template<typename TEMP = void> | |
std::enable_if< is_arithmetic_pz< T >::value, TEMP >::type | Write (TPZStream &buf, int withclassid) const |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More... | |
template<typename TEMP = void> | |
std::enable_if<!is_arithmetic_pz< T >::value, TEMP >::type | Read (TPZStream &buf, void *context) |
read objects from the stream More... | |
template<typename TEMP = void> | |
std::enable_if<!is_arithmetic_pz< T >::value, TEMP >::type | Write (TPZStream &buf, int withclassid) const |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More... | |
Public Member Functions inherited from TPZSavable | |
TPZSavable () | |
virtual | ~TPZSavable () |
virtual std::list< std::map< std::string, uint64_t > > | VersionHistory () const |
virtual std::pair< std::string, uint64_t > | Version () const |
virtual bool | Compare (TPZSavable *copy, bool override=false) |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
virtual bool | Compare (TPZSavable *copy, bool override=false) const |
Compares the object for identity with the object pointed to, eventually copy the object. More... | |
Public Member Functions inherited from TPZRegisterClassId | |
template<typename T > | |
TPZRegisterClassId (int(T::*)() const) | |
TPZRegisterClassId ()=default | |
Protected Attributes | |
T | val_ |
T | dx_ [Num] |
Friends | |
ostream & | operator<< (ostream &stream, const TFad< Num, T > &x) |
istream & | operator>> (istream &stream, TFad< Num, T > &x) |
Additional Inherited Members | |
Static Public Member Functions inherited from TPZSavable | |
static std::set< TPZRestoreClassBase * > & | RestoreClassSet () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::map< int, TPZRestore_t > & | ClassIdMap () |
This static function guarantees that the gMap object is available when needed. More... | |
static std::pair< std::string, uint64_t > | NeoPZVersion () |
static void | Register (TPZRestoreClassBase *restore) |
static void | RegisterClassId (int classid, TPZRestore_t fun) |
static TPZSavable * | CreateInstance (const int &classId) |
typedef GetArithmeticType<T>::type TFad< Num, T >::arithmetic_type |
typedef T TFad< Num, T >::value_type |
|
inline |
Definition at line 186 of file tfad.h.
References TFadExpr< T >::dx(), and TFad< Num, T >::dx_.
|
overridevirtual |
Define the class id associated with the class.
This id has to be unique for all classes A non unique id is flagged at the startup of the program
Implements TPZSavable.
Definition at line 488 of file tfad.h.
References Hash().
Definition at line 172 of file tfad.h.
References TFad< Num, T >::dx_, and TFad< Num, T >::val_.
Referenced by TFad< Num, T >::operator=().
|
inline |
Definition at line 96 of file tfad.h.
Referenced by TPZMatHyperElastic::Contribute().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 94 of file tfad.h.
Referenced by Bench_4_Op().
|
inline |
|
inline |
Definition at line 259 of file tfad.h.
References TFad< Num, T >::dx_, TFad< Num, T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 300 of file tfad.h.
References TFad< Num, T >::dx_, and TFad< Num, T >::val_.
|
inline |
Definition at line 342 of file tfad.h.
References TFadExpr< T >::dx(), TFad< Num, T >::dx_, TFadExpr< T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 245 of file tfad.h.
References TFad< Num, T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 280 of file tfad.h.
References TFad< Num, T >::dx_, and TFad< Num, T >::val_.
|
inline |
Definition at line 322 of file tfad.h.
References TFadExpr< T >::dx(), TFad< Num, T >::dx_, TFadExpr< T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 252 of file tfad.h.
References TFad< Num, T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 290 of file tfad.h.
References TFad< Num, T >::dx_, and TFad< Num, T >::val_.
|
inline |
Definition at line 332 of file tfad.h.
References TFadExpr< T >::dx(), TFad< Num, T >::dx_, TFadExpr< T >::val(), and TFad< Num, T >::val_.
Definition at line 269 of file tfad.h.
References TFad< Num, T >::dx_, TFad< Num, T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 310 of file tfad.h.
References TFad< Num, T >::dx_, and TFad< Num, T >::val_.
|
inline |
Definition at line 353 of file tfad.h.
References TFadExpr< T >::dx(), TFad< Num, T >::dx_, TFadExpr< T >::val(), and TFad< Num, T >::val_.
Definition at line 205 of file tfad.h.
References TFad< Num, T >::dx_, TFad< Num, T >::val(), and TFad< Num, T >::val_.
|
inline |
Definition at line 215 of file tfad.h.
References TFad< Num, T >::copy().
|
inline |
Definition at line 222 of file tfad.h.
References TFadExpr< T >::dx(), TFad< Num, T >::dx_, TFadExpr< T >::val(), and TFad< Num, T >::val_.
|
inlinevirtual |
read objects from the stream
Reimplemented from TPZSavable.
Definition at line 129 of file tfad.h.
References TPZStream::Read().
|
inlinevirtual |
|
inline |
Definition at line 101 of file tfad.h.
References operator+(), operator-(), operator-=(), and val().
|
inline |
Definition at line 89 of file tfad.h.
Referenced by Bench_4_Op(), TPZMatHyperElastic::Contribute(), operator!(), TFad< Num, T >::operator*=(), TFad< Num, T >::operator+=(), TFad< Num, T >::operator-=(), TFad< Num, T >::operator/=(), TFad< Num, T >::operator=(), TPZExtractVal::ref(), and ZeroTolerance().
|
inline |
|
inlinevirtual |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
Writes this object to the TPZStream buffer. Include the classid if withclassid = true
Reimplemented from TPZSavable.
Definition at line 136 of file tfad.h.
References TPZStream::Write().
|
inlinevirtual |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
Writes this object to the TPZStream buffer. Include the classid if withclassid = true
Reimplemented from TPZSavable.
|
friend |
|
friend |
|
protected |
Definition at line 72 of file tfad.h.
Referenced by TFad< Num, T >::copy(), TFad< Num, T >::diff(), TFad< Num, T >::operator*=(), TFad< Num, T >::operator+=(), TFad< Num, T >::operator-=(), TFad< Num, T >::operator/=(), TFad< Num, T >::operator=(), and TFad< Num, T >::TFad().
|
protected |
Definition at line 71 of file tfad.h.
Referenced by TFad< Num, T >::copy(), TFad< Num, T >::operator*=(), TFad< Num, T >::operator+=(), TFad< Num, T >::operator-=(), TFad< Num, T >::operator/=(), and TFad< Num, T >::operator=().