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

#include <tinyfadsix.h>

Collaboration diagram for TinyFad< 6, 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< 6, 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 ()
 
T & dx (int i)
 
const T & dx (int i) const
 
T & d (int i)
 
const T & d (int i) const
 
TinyFad< 6, T > & operator= (const TinyFad< 6, T > &in)
 
TinyFad< 6, T > & operator= (const T &in)
 
TinyFad< 6, T > & operator+= (const TinyFad< 6, T > &in)
 
TinyFad< 6, T > & operator-= (const TinyFad< 6, T > &in)
 
TinyFad< 6, T > & operator*= (const TinyFad< 6, T > &in)
 
TinyFad< 6, T > & operator/= (const TinyFad< 6, T > &in)
 
TinyFad< 6, T > & operator+= (const T &in)
 
TinyFad< 6, T > & operator-= (const T &in)
 
TinyFad< 6, T > & operator*= (const T &in)
 
TinyFad< 6, T > & operator/= (const T &in)
 
TinyFad< 6, T > operator++ (int)
 
TinyFad< 6, T > operator-- (int)
 
TinyFad< 6, T > & operator++ ()
 
TinyFad< 6, T > & operator-- ()
 

Protected Attributes

int n
 
val_
 
dx0_
 
dx1_
 
dx2_
 
dx3_
 
dx4_
 
dx5_
 

Detailed Description

template<class T>
class TinyFad< 6, T >

Definition at line 9 of file tinyfadsix.h.

Member Typedef Documentation

◆ grad_type

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

Definition at line 12 of file tinyfadsix.h.

◆ value_type

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

Definition at line 11 of file tinyfadsix.h.

Constructor & Destructor Documentation

◆ TinyFad() [1/5]

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

Definition at line 47 of file tinyfadsix.h.

◆ TinyFad() [2/5]

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

Definition at line 65 of file tinyfadsix.h.

◆ TinyFad() [3/5]

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

Definition at line 73 of file tinyfadsix.h.

◆ TinyFad() [4/5]

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

Definition at line 74 of file tinyfadsix.h.

◆ TinyFad() [5/5]

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

Definition at line 82 of file tinyfadsix.h.

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

◆ ~TinyFad()

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

Definition at line 91 of file tinyfadsix.h.

Member Function Documentation

◆ d() [1/2]

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

Definition at line 138 of file tinyfadsix.h.

◆ d() [2/2]

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

Definition at line 149 of file tinyfadsix.h.

◆ d0() [1/2]

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

Definition at line 98 of file tinyfadsix.h.

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

◆ d0() [2/2]

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

Definition at line 99 of file tinyfadsix.h.

◆ d1() [1/2]

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

Definition at line 101 of file tinyfadsix.h.

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

◆ d1() [2/2]

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

Definition at line 102 of file tinyfadsix.h.

◆ d2() [1/2]

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

Definition at line 104 of file tinyfadsix.h.

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

◆ d2() [2/2]

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

Definition at line 105 of file tinyfadsix.h.

◆ d3() [1/2]

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

Definition at line 107 of file tinyfadsix.h.

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

◆ d3() [2/2]

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

Definition at line 108 of file tinyfadsix.h.

◆ d4() [1/2]

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

Definition at line 110 of file tinyfadsix.h.

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

◆ d4() [2/2]

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

Definition at line 111 of file tinyfadsix.h.

◆ d5() [1/2]

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

Definition at line 113 of file tinyfadsix.h.

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

◆ d5() [2/2]

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

Definition at line 114 of file tinyfadsix.h.

◆ diff()

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

Definition at line 27 of file tinyfadsix.h.

◆ dx() [1/2]

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

Definition at line 116 of file tinyfadsix.h.

◆ dx() [2/2]

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

Definition at line 127 of file tinyfadsix.h.

◆ N()

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

Definition at line 93 of file tinyfadsix.h.

◆ operator*=() [1/2]

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

Definition at line 210 of file tinyfadsix.h.

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

◆ operator*=() [2/2]

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

Definition at line 242 of file tinyfadsix.h.

◆ operator++() [1/2]

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

Definition at line 268 of file tinyfadsix.h.

References tmp, and val_.

◆ operator++() [2/2]

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

Definition at line 278 of file tinyfadsix.h.

References TinyFad< Num, T >::val_.

◆ operator+=() [1/2]

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

Definition at line 187 of file tinyfadsix.h.

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

◆ operator+=() [2/2]

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

Definition at line 234 of file tinyfadsix.h.

◆ operator--() [1/2]

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

Definition at line 273 of file tinyfadsix.h.

References tmp, and val_.

◆ operator--() [2/2]

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

Definition at line 281 of file tinyfadsix.h.

References TinyFad< Num, T >::val_.

◆ operator-=() [1/2]

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

Definition at line 199 of file tinyfadsix.h.

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

◆ operator-=() [2/2]

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

Definition at line 238 of file tinyfadsix.h.

◆ operator/=() [1/2]

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

Definition at line 221 of file tinyfadsix.h.

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

◆ operator/=() [2/2]

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

Definition at line 254 of file tinyfadsix.h.

References error().

◆ operator=() [1/2]

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

Definition at line 161 of file tinyfadsix.h.

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

◆ operator=() [2/2]

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

Definition at line 174 of file tinyfadsix.h.

◆ val() [1/2]

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

Definition at line 95 of file tinyfadsix.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< 6, T >::val ( )
inline

Definition at line 96 of file tinyfadsix.h.

References TinyFad< Num, T >::val_.

Member Data Documentation

◆ dx0_

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

Definition at line 18 of file tinyfadsix.h.

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

◆ dx1_

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

Definition at line 19 of file tinyfadsix.h.

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

◆ dx2_

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

Definition at line 20 of file tinyfadsix.h.

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

◆ dx3_

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

Definition at line 21 of file tinyfadsix.h.

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

◆ dx4_

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

Definition at line 22 of file tinyfadsix.h.

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

◆ dx5_

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

Definition at line 23 of file tinyfadsix.h.

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

◆ n

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

Definition at line 15 of file tinyfadsix.h.

◆ val_

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

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