NeoPZ
|
#include <tinyfad.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
TinyFad (const T &ind, const int ini) | |
TinyFad () | |
TinyFad (const No_Initialization &) | |
TinyFad (const T &in) | |
TinyFad (const TinyFad &in) | |
~TinyFad () | |
void | diff (const int ith, const int n) |
int | N () const |
const T & | val () const |
T & | val () |
const T & | d (int i) const |
const T & | dx (int i) const |
T & | dx (int i) |
TinyFad< Num, T > & | operator= (const TinyFad< Num, T > &in) |
TinyFad< Num, T > & | operator= (const T &in) |
TinyFad< Num, T > & | operator+= (const TinyFad< Num, T > &in) |
TinyFad< Num, T > & | operator-= (const TinyFad< Num, T > &in) |
TinyFad< Num, T > & | operator*= (const TinyFad< Num, T > &in) |
TinyFad< Num, T > & | operator/= (const TinyFad< Num, T > &in) |
TinyFad< Num, T > & | operator+= (const T &in) |
TinyFad< Num, T > & | operator-= (const T &in) |
TinyFad< Num, T > & | operator*= (const T &in) |
TinyFad< Num, T > & | operator/= (const T &in) |
TinyFad< Num, T > | operator++ (int) |
TinyFad< Num, T > | operator-- (int) |
TinyFad< Num, T > & | operator++ () |
TinyFad< Num, T > & | operator-- () |
Protected Attributes | |
int | n |
T | val_ |
T | df_ [Num] |
typedef T TinyFad< Num, T >::value_type |
Definition at line 105 of file tinyfad.h.
References TinyFad< Num, T >::df_, and error().
Definition at line 119 of file tinyfad.h.
References TinyFad< Num, T >::df_.
|
inline |
Definition at line 129 of file tinyfad.h.
References TinyFad< Num, T >::df_.
Definition at line 139 of file tinyfad.h.
References TinyFad< Num, T >::df_.
|
inline |
Definition at line 76 of file tinyfad.h.
References dx(), and operator-=().
|
inline |
const T & TinyFad< Num, T >::dx | ( | int | i | ) | const |
Definition at line 167 of file tinyfad.h.
References error().
Referenced by Bench_10_Op(), Bench_1_Op(), Bench_20_Op(), Bench_2_Op(), Bench_3_Op(), Bench_4_Op(), cos(), exp(), log(), operator*(), operator+(), operator-(), operator/(), pow(), sin(), sqrt(), and tan().
T & TinyFad< Num, T >::dx | ( | int | i | ) |
|
inline |
TinyFad< Num, T > & TinyFad< Num, T >::operator*= | ( | const TinyFad< Num, T > & | in | ) |
Definition at line 247 of file tinyfad.h.
References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.
Definition at line 332 of file tinyfad.h.
References tmp, and TinyFad< Num, T >::val_.
TinyFad< Num, T > & TinyFad< Num, T >::operator+= | ( | const TinyFad< Num, T > & | in | ) |
Definition at line 219 of file tinyfad.h.
References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.
Definition at line 340 of file tinyfad.h.
References tmp, and TinyFad< Num, T >::val_.
TinyFad< Num, T > & TinyFad< Num, T >::operator-= | ( | const TinyFad< Num, T > & | in | ) |
Definition at line 233 of file tinyfad.h.
References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.
TinyFad< Num, T > & TinyFad< Num, T >::operator/= | ( | const TinyFad< Num, T > & | in | ) |
Definition at line 261 of file tinyfad.h.
References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.
|
inline |
Definition at line 189 of file tinyfad.h.
References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.
|
inline |
Definition at line 72 of file tinyfad.h.
Referenced by abs(), Bench_10_Op(), Bench_1_Op(), Bench_20_Op(), Bench_2_Op(), Bench_3_Op(), Bench_4_Op(), cos(), exp(), log(), operator!=(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator==(), operator>(), operator>=(), pow(), sin(), sqrt(), and tan().
|
inline |
|
protected |
Definition at line 49 of file tinyfad.h.
Referenced by TinyFad< Num, T >::operator*=(), TinyFad< Num, T >::operator+=(), TinyFad< Num, T >::operator-=(), TinyFad< Num, T >::operator/=(), TinyFad< Num, T >::operator=(), and TinyFad< Num, T >::TinyFad().
|
protected |
|
protected |
Definition at line 47 of file tinyfad.h.
Referenced by TinyFad< Num, T >::operator*=(), TinyFad< Num, T >::operator++(), TinyFad< 1, T >::operator++(), TinyFad< 2, T >::operator++(), TinyFad< 3, T >::operator++(), TinyFad< 4, T >::operator++(), TinyFad< 5, T >::operator++(), TinyFad< 6, T >::operator++(), TinyFad< 7, T >::operator++(), TinyFad< 8, T >::operator++(), TinyFad< 9, T >::operator++(), TinyFad< 10, T >::operator++(), TinyFad< 11, T >::operator++(), TinyFad< 12, T >::operator++(), TinyFad< 13, T >::operator++(), TinyFad< 14, T >::operator++(), TinyFad< 15, T >::operator++(), TinyFad< 16, T >::operator++(), TinyFad< 17, T >::operator++(), TinyFad< 18, T >::operator++(), TinyFad< 19, T >::operator++(), TinyFad< 20, T >::operator++(), TinyFad< Num, T >::operator+=(), TinyFad< Num, T >::operator--(), TinyFad< 1, T >::operator--(), TinyFad< 2, T >::operator--(), TinyFad< 3, T >::operator--(), TinyFad< 4, T >::operator--(), TinyFad< 5, T >::operator--(), TinyFad< 6, T >::operator--(), TinyFad< 7, T >::operator--(), TinyFad< 8, T >::operator--(), TinyFad< 9, T >::operator--(), TinyFad< 10, T >::operator--(), TinyFad< 11, T >::operator--(), TinyFad< 12, T >::operator--(), TinyFad< 13, T >::operator--(), TinyFad< 14, T >::operator--(), TinyFad< 15, T >::operator--(), TinyFad< 16, T >::operator--(), TinyFad< 17, T >::operator--(), TinyFad< 18, T >::operator--(), TinyFad< 19, T >::operator--(), TinyFad< 20, T >::operator--(), TinyFad< Num, T >::operator-=(), TinyFad< Num, T >::operator/=(), TinyFad< Num, T >::operator=(), TinyFad< 1, T >::val(), TinyFad< 2, T >::val(), TinyFad< 3, T >::val(), TinyFad< 4, T >::val(), TinyFad< 5, T >::val(), TinyFad< 6, T >::val(), TinyFad< 7, T >::val(), TinyFad< 8, T >::val(), TinyFad< 9, T >::val(), TinyFad< 10, T >::val(), TinyFad< 11, T >::val(), TinyFad< 12, T >::val(), TinyFad< 13, T >::val(), TinyFad< 14, T >::val(), TinyFad< 15, T >::val(), TinyFad< 16, T >::val(), TinyFad< 17, T >::val(), TinyFad< 18, T >::val(), TinyFad< 19, T >::val(), and TinyFad< 20, T >::val().