NeoPZ
Public Types | Public Member Functions | Protected Attributes | List of all members
TinyFad< Num, T > Class Template Reference

#include <tinyfad.h>

Collaboration diagram for TinyFad< Num, T >:
[legend]

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
 
val_
 
df_ [Num]
 

Detailed Description

template<int Num, class T = float>
class TinyFad< Num, T >

Definition at line 43 of file tinyfad.h.

Member Typedef Documentation

◆ value_type

template<int Num, class T = float>
typedef T TinyFad< Num, T >::value_type

Definition at line 53 of file tinyfad.h.

Constructor & Destructor Documentation

◆ TinyFad() [1/5]

template<int Num, class T >
TinyFad< Num, T >::TinyFad ( const T &  ind,
const int  ini 
)
inline

Definition at line 105 of file tinyfad.h.

References TinyFad< Num, T >::df_, and error().

◆ TinyFad() [2/5]

template<int Num, class T >
TinyFad< Num, T >::TinyFad ( )
inline

Definition at line 119 of file tinyfad.h.

References TinyFad< Num, T >::df_.

◆ TinyFad() [3/5]

template<int Num, class T = float>
TinyFad< Num, T >::TinyFad ( const No_Initialization )
inline

Definition at line 60 of file tinyfad.h.

◆ TinyFad() [4/5]

template<int Num, class T >
TinyFad< Num, T >::TinyFad ( const T &  in)
inline

Definition at line 129 of file tinyfad.h.

References TinyFad< Num, T >::df_.

◆ TinyFad() [5/5]

template<int Num, class T >
TinyFad< Num, T >::TinyFad ( const TinyFad< Num, T > &  in)
inline

Definition at line 139 of file tinyfad.h.

References TinyFad< Num, T >::df_.

◆ ~TinyFad()

template<int Num, class T >
TinyFad< Num, T >::~TinyFad ( )
inline

Definition at line 150 of file tinyfad.h.

Member Function Documentation

◆ d()

template<int Num, class T = float>
const T& TinyFad< Num, T >::d ( int  i) const
inline

Definition at line 76 of file tinyfad.h.

References dx(), and operator-=().

◆ diff()

template<int Num, class T >
void TinyFad< Num, T >::diff ( const int  ith,
const int  n 
)
inline

Definition at line 158 of file tinyfad.h.

Referenced by main().

◆ dx() [1/2]

template<int Num, class T >
const T & TinyFad< Num, T >::dx ( int  i) const

◆ dx() [2/2]

template<int Num, class T >
T & TinyFad< Num, T >::dx ( int  i)

Definition at line 177 of file tinyfad.h.

References error().

◆ N()

template<int Num, class T = float>
int TinyFad< Num, T >::N ( ) const
inline

Definition at line 70 of file tinyfad.h.

◆ operator*=() [1/2]

template<int Num, class T >
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_.

◆ operator*=() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator*= ( const T &  in)

Definition at line 299 of file tinyfad.h.

References error().

◆ operator++() [1/2]

template<int Num, class T >
TinyFad< Num, T > TinyFad< Num, T >::operator++ ( int  )
inline

Definition at line 332 of file tinyfad.h.

References tmp, and TinyFad< Num, T >::val_.

◆ operator++() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator++ ( )
inline

Definition at line 348 of file tinyfad.h.

◆ operator+=() [1/2]

template<int Num, class T >
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_.

◆ operator+=() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator+= ( const T &  in)

Definition at line 277 of file tinyfad.h.

References error().

◆ operator--() [1/2]

template<int Num, class T >
TinyFad< Num, T > TinyFad< Num, T >::operator-- ( int  )
inline

Definition at line 340 of file tinyfad.h.

References tmp, and TinyFad< Num, T >::val_.

◆ operator--() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator-- ( )
inline

Definition at line 355 of file tinyfad.h.

◆ operator-=() [1/2]

template<int Num, class T >
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_.

◆ operator-=() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator-= ( const T &  in)

Definition at line 288 of file tinyfad.h.

References error().

◆ operator/=() [1/2]

template<int Num, class T >
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_.

◆ operator/=() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator/= ( const T &  in)

Definition at line 313 of file tinyfad.h.

References error().

◆ operator=() [1/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator= ( const TinyFad< Num, T > &  in)
inline

Definition at line 189 of file tinyfad.h.

References TinyFad< Num, T >::df_, error(), and TinyFad< Num, T >::val_.

◆ operator=() [2/2]

template<int Num, class T >
TinyFad< Num, T > & TinyFad< Num, T >::operator= ( const T &  in)

Definition at line 205 of file tinyfad.h.

References error().

◆ val() [1/2]

template<int Num, class T = float>
const T& TinyFad< Num, T >::val ( ) const
inline

◆ val() [2/2]

template<int Num, class T = float>
T& TinyFad< Num, T >::val ( )
inline

Definition at line 73 of file tinyfad.h.

Member Data Documentation

◆ df_

template<int Num, class T = float>
T TinyFad< Num, T >::df_[Num]
protected

◆ n

template<int Num, class T = float>
int TinyFad< Num, T >::n
protected

Definition at line 46 of file tinyfad.h.

◆ val_

template<int Num, class T = float>
T TinyFad< Num, T >::val_
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().


The documentation for this class was generated from the following file: