Sacado Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Sacado::Tay::Expr< CacheTaylorImplementation< T > > Class Template Reference

CacheTaylor expression template specialization. More...

#include <Sacado_Tay_CacheTaylor.hpp>

Inheritance diagram for Sacado::Tay::Expr< CacheTaylorImplementation< T > >:
Inheritance graph
[legend]

Public Types

typedef CacheTaylor< Tbase_expr_type
 Typename of base-expressions.
 
- Public Types inherited from Sacado::Tay::CacheTaylorImplementation< T >
typedef T value_type
 Typename of values.
 
typedef ScalarType< T >::type scalar_type
 Typename of scalar's (which may be different from ValueT)
 

Public Member Functions

 Expr ()
 Default constructor.
 
 Expr (const T &x)
 Constructor with supplied value x.
 
 Expr (int d, const T &x)
 Constructor with degree d and value x.
 
 Expr (const Expr &x)
 Copy constructor.
 
- Public Member Functions inherited from Sacado::Tay::CacheTaylorImplementation< T >
 CacheTaylorImplementation ()
 Default constructor.
 
 CacheTaylorImplementation (const T &x)
 Constructor with supplied value x.
 
 CacheTaylorImplementation (int d, const T &x)
 Constructor with degree d and value x.
 
 CacheTaylorImplementation (const CacheTaylorImplementation &x)
 Copy constructor.
 
 ~CacheTaylorImplementation ()
 Destructor.
 
void resize (int d, bool keep_coeffs)
 Resize polynomial to degree d.
 
int degree () const
 Returns degree of polynomial.
 
bool hasFastAccess (int d) const
 Returns true if polynomial has degree >= d.
 
const std::valarray< T > & coeff () const
 Returns Taylor coefficient array.
 
const T coeff (int i) const
 Returns degree i term with bounds checking.
 
T coeff (int i)
 Returns degree i term with bounds checking.
 
TfastAccessCoeff (int i)
 Returns degree i term without bounds checking.
 
const TfastAccessCoeff (int i) const
 Returns degree i term without bounds checking.
 
void allocateCache (int d) const
 Allocate coefficient cache.
 
template<typename S >
bool isEqualTo (const Expr< S > &x) const
 Returns whether two Taylor objects have the same values.
 
const Tval () const
 Returns value.
 
Tval ()
 Returns value.
 

Additional Inherited Members

- Protected Member Functions inherited from Sacado::Tay::CacheTaylorImplementation< T >
void resizeCoeffs (int dnew)
 Resize coefficient array to new size.
 
int coeff_size () const
 
- Protected Attributes inherited from Sacado::Tay::CacheTaylorImplementation< T >
std::valarray< Tcoeff_
 Taylor polynomial coefficients.
 

Detailed Description

template<typename T>
class Sacado::Tay::Expr< CacheTaylorImplementation< T > >

CacheTaylor expression template specialization.

This template class represents a simple CacheTaylor expression.

Definition at line 194 of file Sacado_Tay_CacheTaylor.hpp.

Member Typedef Documentation

◆ base_expr_type

template<typename T >
typedef CacheTaylor<T> Sacado::Tay::Expr< CacheTaylorImplementation< T > >::base_expr_type

Typename of base-expressions.

Definition at line 200 of file Sacado_Tay_CacheTaylor.hpp.

Constructor & Destructor Documentation

◆ Expr() [1/4]

template<typename T >
Sacado::Tay::Expr< CacheTaylorImplementation< T > >::Expr ( )
inline

Default constructor.

Definition at line 203 of file Sacado_Tay_CacheTaylor.hpp.

◆ Expr() [2/4]

template<typename T >
Sacado::Tay::Expr< CacheTaylorImplementation< T > >::Expr ( const T x)
inline

Constructor with supplied value x.

Sets the first coefficient to x

Definition at line 209 of file Sacado_Tay_CacheTaylor.hpp.

◆ Expr() [3/4]

template<typename T >
Sacado::Tay::Expr< CacheTaylorImplementation< T > >::Expr ( int  d,
const T x 
)
inline

Constructor with degree d and value x.

Initializes first coeffienct to x and of a polynomial of degree d

Definition at line 215 of file Sacado_Tay_CacheTaylor.hpp.

◆ Expr() [4/4]

template<typename T >
Sacado::Tay::Expr< CacheTaylorImplementation< T > >::Expr ( const Expr< CacheTaylorImplementation< T > > &  x)
inline

Copy constructor.

Definition at line 218 of file Sacado_Tay_CacheTaylor.hpp.


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