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

#include <tinyfadeight.h>

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< 8, 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 ()
 
const T & d3 () const
 
T & d3 ()
 
const T & d4 () const
 
T & d4 ()
 
const T & d5 () const
 
T & d5 ()
 
const T & d6 () const
 
T & d6 ()
 
const T & d7 () const
 
T & d7 ()
 
T & dx (int i)
 
const T & dx (int i) const
 
T & d (int i)
 
const T & d (int i) const
 
TinyFad< 8, T > & operator= (const TinyFad< 8, T > &in)
 
TinyFad< 8, T > & operator= (const T &in)
 
TinyFad< 8, T > & operator+= (const TinyFad< 8, T > &in)
 
TinyFad< 8, T > & operator-= (const TinyFad< 8, T > &in)
 
TinyFad< 8, T > & operator*= (const TinyFad< 8, T > &in)
 
TinyFad< 8, T > & operator/= (const TinyFad< 8, T > &in)
 
TinyFad< 8, T > & operator+= (const T &in)
 
TinyFad< 8, T > & operator-= (const T &in)
 
TinyFad< 8, T > & operator*= (const T &in)
 
TinyFad< 8, T > & operator/= (const T &in)
 
TinyFad< 8, T > operator++ (int)
 
TinyFad< 8, T > operator-- (int)
 
TinyFad< 8, T > & operator++ ()
 
TinyFad< 8, T > & operator-- ()
 

Protected Attributes

int n
 
val_
 
dx0_
 
dx1_
 
dx2_
 
dx3_
 
dx4_
 
dx5_
 
dx6_
 
dx7_
 

Detailed Description

template<class T>
class TinyFad< 8, T >

Definition at line 9 of file tinyfadeight.h.

Member Typedef Documentation

◆ grad_type

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

Definition at line 12 of file tinyfadeight.h.

◆ value_type

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

Definition at line 11 of file tinyfadeight.h.

Constructor & Destructor Documentation

◆ TinyFad() [1/5]

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

Definition at line 53 of file tinyfadeight.h.

◆ TinyFad() [2/5]

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

Definition at line 75 of file tinyfadeight.h.

◆ TinyFad() [3/5]

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

Definition at line 85 of file tinyfadeight.h.

◆ TinyFad() [4/5]

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

Definition at line 86 of file tinyfadeight.h.

◆ TinyFad() [5/5]

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

Definition at line 96 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, and dx7_.

◆ ~TinyFad()

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

Definition at line 107 of file tinyfadeight.h.

Member Function Documentation

◆ d() [1/2]

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

Definition at line 164 of file tinyfadeight.h.

◆ d() [2/2]

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

Definition at line 177 of file tinyfadeight.h.

◆ d0() [1/2]

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

Definition at line 114 of file tinyfadeight.h.

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

◆ d0() [2/2]

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

Definition at line 115 of file tinyfadeight.h.

◆ d1() [1/2]

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

Definition at line 117 of file tinyfadeight.h.

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

◆ d1() [2/2]

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

Definition at line 118 of file tinyfadeight.h.

◆ d2() [1/2]

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

Definition at line 120 of file tinyfadeight.h.

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

◆ d2() [2/2]

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

Definition at line 121 of file tinyfadeight.h.

◆ d3() [1/2]

template<class T >
const T& TinyFad< 8, T >::d3 ( ) const
inline

Definition at line 123 of file tinyfadeight.h.

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

◆ d3() [2/2]

template<class T >
T& TinyFad< 8, T >::d3 ( )
inline

Definition at line 124 of file tinyfadeight.h.

◆ d4() [1/2]

template<class T >
const T& TinyFad< 8, T >::d4 ( ) const
inline

Definition at line 126 of file tinyfadeight.h.

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

◆ d4() [2/2]

template<class T >
T& TinyFad< 8, T >::d4 ( )
inline

Definition at line 127 of file tinyfadeight.h.

◆ d5() [1/2]

template<class T >
const T& TinyFad< 8, T >::d5 ( ) const
inline

Definition at line 129 of file tinyfadeight.h.

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

◆ d5() [2/2]

template<class T >
T& TinyFad< 8, T >::d5 ( )
inline

Definition at line 130 of file tinyfadeight.h.

◆ d6() [1/2]

template<class T >
const T& TinyFad< 8, T >::d6 ( ) const
inline

Definition at line 132 of file tinyfadeight.h.

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

◆ d6() [2/2]

template<class T >
T& TinyFad< 8, T >::d6 ( )
inline

Definition at line 133 of file tinyfadeight.h.

◆ d7() [1/2]

template<class T >
const T& TinyFad< 8, T >::d7 ( ) const
inline

Definition at line 135 of file tinyfadeight.h.

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

◆ d7() [2/2]

template<class T >
T& TinyFad< 8, T >::d7 ( )
inline

Definition at line 136 of file tinyfadeight.h.

◆ diff()

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

Definition at line 29 of file tinyfadeight.h.

◆ dx() [1/2]

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

Definition at line 138 of file tinyfadeight.h.

◆ dx() [2/2]

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

Definition at line 151 of file tinyfadeight.h.

◆ N()

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

Definition at line 109 of file tinyfadeight.h.

◆ operator*=() [1/2]

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

Definition at line 248 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, dx7_, and val_.

◆ operator*=() [2/2]

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

Definition at line 284 of file tinyfadeight.h.

◆ operator++() [1/2]

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

Definition at line 314 of file tinyfadeight.h.

References tmp, and val_.

◆ operator++() [2/2]

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

Definition at line 324 of file tinyfadeight.h.

References TinyFad< Num, T >::val_.

◆ operator+=() [1/2]

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

Definition at line 221 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, dx7_, and val_.

◆ operator+=() [2/2]

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

Definition at line 276 of file tinyfadeight.h.

◆ operator--() [1/2]

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

Definition at line 319 of file tinyfadeight.h.

References tmp, and val_.

◆ operator--() [2/2]

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

Definition at line 327 of file tinyfadeight.h.

References TinyFad< Num, T >::val_.

◆ operator-=() [1/2]

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

Definition at line 235 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, dx7_, and val_.

◆ operator-=() [2/2]

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

Definition at line 280 of file tinyfadeight.h.

◆ operator/=() [1/2]

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

Definition at line 261 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, dx7_, error(), and val_.

◆ operator/=() [2/2]

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

Definition at line 298 of file tinyfadeight.h.

References error().

◆ operator=() [1/2]

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

Definition at line 191 of file tinyfadeight.h.

References dx0_, dx1_, dx2_, dx3_, dx4_, dx5_, dx6_, dx7_, and val_.

◆ operator=() [2/2]

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

Definition at line 206 of file tinyfadeight.h.

◆ val() [1/2]

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

Definition at line 111 of file tinyfadeight.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< 8, T >::val ( )
inline

Definition at line 112 of file tinyfadeight.h.

References TinyFad< Num, T >::val_.

Member Data Documentation

◆ dx0_

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

Definition at line 18 of file tinyfadeight.h.

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

◆ dx1_

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

Definition at line 19 of file tinyfadeight.h.

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

◆ dx2_

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

Definition at line 20 of file tinyfadeight.h.

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

◆ dx3_

template<class T >
T TinyFad< 8, T >::dx3_
protected

Definition at line 21 of file tinyfadeight.h.

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

◆ dx4_

template<class T >
T TinyFad< 8, T >::dx4_
protected

Definition at line 22 of file tinyfadeight.h.

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

◆ dx5_

template<class T >
T TinyFad< 8, T >::dx5_
protected

Definition at line 23 of file tinyfadeight.h.

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

◆ dx6_

template<class T >
T TinyFad< 8, T >::dx6_
protected

Definition at line 24 of file tinyfadeight.h.

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

◆ dx7_

template<class T >
T TinyFad< 8, T >::dx7_
protected

Definition at line 25 of file tinyfadeight.h.

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

◆ n

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

Definition at line 15 of file tinyfadeight.h.

◆ val_

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

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