Sacado Development
Classes | Public Types | Public Member Functions
Sacado::Tay::CacheTaylor< T > Class Template Reference

Forward-mode AD class using dynamic memory allocation. More...

#include <Sacado_Tay_CacheTaylor.hpp>

Inheritance diagram for Sacado::Tay::CacheTaylor< T >:
Inheritance graph
[legend]
Collaboration diagram for Sacado::Tay::CacheTaylor< T >:
Collaboration graph
[legend]

List of all members.

Classes

struct  apply
 Turn CacheTaylor into a meta-function class usable with mpl::apply. More...

Public Types

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

 ~CacheTaylor ()
 Destructor.
Initialization methods
 CacheTaylor ()
 Default constructor.
 CacheTaylor (const T &x)
 Constructor with supplied value x.
 CacheTaylor (const typename dummy< value_type, scalar_type >::type &x)
 Constructor with supplied value x.
 CacheTaylor (int d, const T &x)
 Constructor with degree d and value x.
 CacheTaylor (const CacheTaylor &x)
 Copy constructor.
template<typename S >
 CacheTaylor (const Expr< S > &x)
 Copy constructor from any Expression object.
Assignment operators
CacheTaylor< T > & operator= (const T &v)
 Assignment operator with constant right-hand-side.
CacheTaylor< T > & operator= (const typename dummy< value_type, scalar_type >::type &val)
 Assignment operator with constant right-hand-side.
CacheTaylor< T > & operator= (const CacheTaylor< T > &x)
 Assignment with CacheTaylor right-hand-side.
template<typename S >
CacheTaylor< T > & operator= (const Expr< S > &x)
 Assignment operator with any expression right-hand-side.
Unary operators
Expr< UnaryExpr< CacheTaylor
< T >, UnaryPlusOp > > 
operator+ () const
 Unary-plus operator.
Expr< UnaryExpr< CacheTaylor
< T >, UnaryMinusOp > > 
operator- () const
 Unary-minus operator.
CacheTaylor< T > & operator+= (const T &x)
 Addition-assignment operator with constant right-hand-side.
CacheTaylor< T > & operator-= (const T &x)
 Subtraction-assignment operator with constant right-hand-side.
CacheTaylor< T > & operator*= (const T &x)
 Multiplication-assignment operator with constant right-hand-side.
CacheTaylor< T > & operator/= (const T &x)
 Division-assignment operator with constant right-hand-side.
template<typename S >
CacheTaylor< T > & operator+= (const S &x)
 Addition-assignment operator with Taylor right-hand-side.
template<typename S >
CacheTaylor< T > & operator-= (const S &x)
 Subtraction-assignment operator with Taylor right-hand-side.
template<typename S >
CacheTaylor< T > & operator*= (const S &x)
 Multiplication-assignment operator with Taylor right-hand-side.
template<typename S >
CacheTaylor< T > & operator/= (const S &x)
 Division-assignment operator with Taylor right-hand-side.

Detailed Description

template<typename T>
class Sacado::Tay::CacheTaylor< T >

Forward-mode AD class using dynamic memory allocation.

This class provides the user interface of the Taylor object. Class CacheTaylorImplementation provides the implementation.


Constructor & Destructor Documentation

template<typename T >
Sacado::Tay::CacheTaylor< T >::CacheTaylor ( const T &  x) [inline]

Constructor with supplied value x.

Sets the first coefficient to x

template<typename T >
Sacado::Tay::CacheTaylor< T >::CacheTaylor ( const typename dummy< value_type, scalar_type >::type &  x) [inline]

Constructor with supplied value x.

Sets the first coefficient to x. Creates a dummy overload when ValueT and ScalarT are the same type.

template<typename T >
Sacado::Tay::CacheTaylor< T >::CacheTaylor ( 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


Member Function Documentation

template<typename T >
CacheTaylor<T>& Sacado::Tay::CacheTaylor< T >::operator= ( const typename dummy< value_type, scalar_type >::type &  val) [inline]

Assignment operator with constant right-hand-side.

Creates a dummy overload when value_type and scalar_type are the same type.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends