|
Sacado Package Browser (Single Doxygen Collection) Version of the Day
|
CacheTaylor expression template specialization. More...
#include <Sacado_Tay_CacheTaylor.hpp>

Public Types | |
| typedef CacheTaylor< T > | base_expr_type |
| Typename of base-expressions. | |
| typedef CacheTaylorImplementation< T >::value_type | value_type |
| Typename of values. | |
| typedef CacheTaylorImplementation< T >::scalar_type | scalar_type |
| Typename of scalar's (which may be different from value_type) | |
| typedef CacheTaylorImplementation< T >::base_expr_type | base_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. | |
| Expr (const CacheTaylorImplementation< T > &expr) | |
Constructor with given expression expr. | |
| void | allocateCache (unsigned int d) const |
| Allocate coefficient cache. | |
| unsigned int | degree () const |
| Return degree of polynomial. | |
| bool | hasFastAccess (unsigned int d) const |
| Return if expression has fast access. | |
| value_type | coeff (unsigned int i) const |
Return degree i term of expression. | |
| value_type | fastAccessCoeff (unsigned int i) const |
Return degree i term of expression. | |
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. | |
| T & | fastAccessCoeff (int i) |
Returns degree i term without bounds checking. | |
| const T & | fastAccessCoeff (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 T & | val () const |
| Returns value. | |
| T & | val () |
| Returns value. | |
Protected Member Functions | |
| Expr () | |
| Disallow default constructor. | |
| void | resizeCoeffs (int dnew) |
| Resize coefficient array to new size. | |
| int | coeff_size () const |
Protected Attributes | |
| CacheTaylorImplementation< T > | expr_ |
| Expression. | |
| std::valarray< T > | coeff_ |
| Taylor polynomial coefficients. | |
CacheTaylor expression template specialization.
This template class represents a simple CacheTaylor expression.
Definition at line 194 of file Sacado_Tay_CacheTaylor.hpp.
| 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.
| typedef CacheTaylorImplementation< T >::value_type Sacado::Tay::Expr< CacheTaylorImplementation< T > >::value_type |
Typename of values.
Definition at line 50 of file Sacado_Tay_CacheTaylorExpr.hpp.
| typedef CacheTaylorImplementation< T >::scalar_type Sacado::Tay::Expr< CacheTaylorImplementation< T > >::scalar_type |
Typename of scalar's (which may be different from value_type)
Definition at line 53 of file Sacado_Tay_CacheTaylorExpr.hpp.
| typedef CacheTaylorImplementation< T >::base_expr_type Sacado::Tay::Expr< CacheTaylorImplementation< T > >::base_expr_type |
Typename of base-expressions.
Definition at line 56 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Default constructor.
Definition at line 203 of file Sacado_Tay_CacheTaylor.hpp.
|
inline |
Constructor with supplied value x.
Sets the first coefficient to x
Definition at line 209 of file Sacado_Tay_CacheTaylor.hpp.
|
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.
|
inline |
Copy constructor.
Definition at line 218 of file Sacado_Tay_CacheTaylor.hpp.
|
inlineexplicit |
Constructor with given expression expr.
Definition at line 59 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inlineprotected |
Disallow default constructor.
Definition at line 81 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Allocate coefficient cache.
Definition at line 62 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Return degree of polynomial.
Definition at line 65 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Return if expression has fast access.
Definition at line 68 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Return degree i term of expression.
Definition at line 72 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
inline |
Return degree i term of expression.
Definition at line 75 of file Sacado_Tay_CacheTaylorExpr.hpp.
|
protected |
Expression.
Definition at line 84 of file Sacado_Tay_CacheTaylorExpr.hpp.