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

#include <tinyfadthree.h>

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

Public Types

typedef T value_type
 
typedef T grad_type
 

Public Member Functions

void diff (const size_t ith, const size_t sz)
 
 TinyFad (const T &ind, const int ini)
 
 TinyFad ()
 
 TinyFad (const No_Initialization &)
 
 TinyFad (const T &in)
 
 TinyFad (const TinyFad< 3, T > &in)
 
 ~TinyFad ()
 
int N () const
 
const T & val () const
 
T & val ()
 
const T & d0 () const
 
T & d0 ()
 
const T & d1 () const
 
T & d1 ()
 
const T & d2 () const
 
T & d2 ()
 
T & dx (int i)
 
const T & dx (int i) const
 
T & d (int i)
 
const T & d (int i) const
 
TinyFad< 3, T > & operator= (const TinyFad< 3, T > &in)
 
TinyFad< 3, T > & operator= (const T &in)
 
TinyFad< 3, T > & operator+= (const TinyFad< 3, T > &in)
 
TinyFad< 3, T > & operator-= (const TinyFad< 3, T > &in)
 
TinyFad< 3, T > & operator*= (const TinyFad< 3, T > &in)
 
TinyFad< 3, T > & operator/= (const TinyFad< 3, T > &in)
 
TinyFad< 3, T > & operator+= (const T &in)
 
TinyFad< 3, T > & operator-= (const T &in)
 
TinyFad< 3, T > & operator*= (const T &in)
 
TinyFad< 3, T > & operator/= (const T &in)
 
TinyFad< 3, T > operator++ (int)
 
TinyFad< 3, T > operator-- (int)
 
TinyFad< 3, T > & operator++ ()
 
TinyFad< 3, T > & operator-- ()
 

Protected Attributes

int n
 
val_
 
dx0_
 
dx1_
 
dx2_
 

Detailed Description

template<class T>
class TinyFad< 3, T >

Definition at line 9 of file tinyfadthree.h.

Member Typedef Documentation

◆ grad_type

template<class T >
typedef T TinyFad< 3, T >::grad_type

Definition at line 12 of file tinyfadthree.h.

◆ value_type

template<class T >
typedef T TinyFad< 3, T >::value_type

Definition at line 11 of file tinyfadthree.h.

Constructor & Destructor Documentation

◆ TinyFad() [1/5]

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

Definition at line 38 of file tinyfadthree.h.

◆ TinyFad() [2/5]

template<class T >
TinyFad< 3, T >::TinyFad ( )
inline

Definition at line 50 of file tinyfadthree.h.

◆ TinyFad() [3/5]

template<class T >
TinyFad< 3, T >::TinyFad ( const No_Initialization )
inline

Definition at line 55 of file tinyfadthree.h.

◆ TinyFad() [4/5]

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

Definition at line 56 of file tinyfadthree.h.

◆ TinyFad() [5/5]

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

Definition at line 61 of file tinyfadthree.h.

References dx0_, dx1_, and dx2_.

◆ ~TinyFad()

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

Definition at line 67 of file tinyfadthree.h.

Member Function Documentation

◆ d() [1/2]

template<class T >
T& TinyFad< 3, T >::d ( int  i)
inline

Definition at line 99 of file tinyfadthree.h.

◆ d() [2/2]

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

Definition at line 107 of file tinyfadthree.h.

◆ d0() [1/2]

template<class T >
const T& TinyFad< 3, T >::d0 ( ) const
inline

Definition at line 74 of file tinyfadthree.h.

Referenced by cos(), exp(), log(), pow(), sin(), sqrt(), and tan().

◆ d0() [2/2]

template<class T >
T& TinyFad< 3, T >::d0 ( )
inline

Definition at line 75 of file tinyfadthree.h.

◆ d1() [1/2]

template<class T >
const T& TinyFad< 3, T >::d1 ( ) const
inline

Definition at line 77 of file tinyfadthree.h.

Referenced by cos(), exp(), log(), pow(), sin(), sqrt(), and tan().

◆ d1() [2/2]

template<class T >
T& TinyFad< 3, T >::d1 ( )
inline

Definition at line 78 of file tinyfadthree.h.

◆ d2() [1/2]

template<class T >
const T& TinyFad< 3, T >::d2 ( ) const
inline

Definition at line 80 of file tinyfadthree.h.

Referenced by cos(), exp(), log(), pow(), sin(), sqrt(), and tan().

◆ d2() [2/2]

template<class T >
T& TinyFad< 3, T >::d2 ( )
inline

Definition at line 81 of file tinyfadthree.h.

◆ diff()

template<class T >
void TinyFad< 3, T >::diff ( const size_t  ith,
const size_t  sz 
)
inline

Definition at line 24 of file tinyfadthree.h.

◆ dx() [1/2]

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

Definition at line 83 of file tinyfadthree.h.

◆ dx() [2/2]

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

Definition at line 91 of file tinyfadthree.h.

◆ N()

template<class T >
int TinyFad< 3, T >::N ( ) const
inline

Definition at line 69 of file tinyfadthree.h.

◆ operator*=() [1/2]

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

Definition at line 153 of file tinyfadthree.h.

References dx0_, dx1_, dx2_, and val_.

◆ operator*=() [2/2]

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

Definition at line 179 of file tinyfadthree.h.

◆ operator++() [1/2]

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

Definition at line 199 of file tinyfadthree.h.

References tmp, and val_.

◆ operator++() [2/2]

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

Definition at line 209 of file tinyfadthree.h.

References TinyFad< Num, T >::val_.

◆ operator+=() [1/2]

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

Definition at line 136 of file tinyfadthree.h.

References dx0_, dx1_, dx2_, and val_.

◆ operator+=() [2/2]

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

Definition at line 171 of file tinyfadthree.h.

◆ operator--() [1/2]

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

Definition at line 204 of file tinyfadthree.h.

References tmp, and val_.

◆ operator--() [2/2]

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

Definition at line 212 of file tinyfadthree.h.

References TinyFad< Num, T >::val_.

◆ operator-=() [1/2]

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

Definition at line 145 of file tinyfadthree.h.

References dx0_, dx1_, dx2_, and val_.

◆ operator-=() [2/2]

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

Definition at line 175 of file tinyfadthree.h.

◆ operator/=() [1/2]

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

Definition at line 161 of file tinyfadthree.h.

References dx0_, dx1_, dx2_, error(), and val_.

◆ operator/=() [2/2]

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

Definition at line 188 of file tinyfadthree.h.

References error().

◆ operator=() [1/2]

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

Definition at line 116 of file tinyfadthree.h.

References dx0_, dx1_, dx2_, and val_.

◆ operator=() [2/2]

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

Definition at line 126 of file tinyfadthree.h.

◆ val() [1/2]

template<class T >
const T& TinyFad< 3, T >::val ( ) const
inline

Definition at line 71 of file tinyfadthree.h.

References TinyFad< Num, T >::val_.

Referenced by abs(), cos(), exp(), log(), operator<<(), pow(), sin(), sqrt(), and tan().

◆ val() [2/2]

template<class T >
T& TinyFad< 3, T >::val ( )
inline

Definition at line 72 of file tinyfadthree.h.

References TinyFad< Num, T >::val_.

Member Data Documentation

◆ dx0_

template<class T >
T TinyFad< 3, T >::dx0_
protected

Definition at line 18 of file tinyfadthree.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and TinyFad().

◆ dx1_

template<class T >
T TinyFad< 3, T >::dx1_
protected

Definition at line 19 of file tinyfadthree.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and TinyFad().

◆ dx2_

template<class T >
T TinyFad< 3, T >::dx2_
protected

Definition at line 20 of file tinyfadthree.h.

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), operator=(), and TinyFad().

◆ n

template<class T >
int TinyFad< 3, T >::n
protected

Definition at line 15 of file tinyfadthree.h.

◆ val_

template<class T >
T TinyFad< 3, T >::val_
protected

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