Sacado Package Browser (Single Doxygen Collection) Version of the Day
Public Types | Public Member Functions
Sacado::CacheFad::Expr< GeneralFad< T, Storage > > Class Template Reference

GeneralFad expression template specialization. More...

#include <Sacado_CacheFad_GeneralFadExpr.hpp>

Inheritance diagram for Sacado::CacheFad::Expr< GeneralFad< T, Storage > >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef GeneralFad< T, Storage >
::value_type 
value_type
 Typename of values.
typedef GeneralFad< T, Storage >
::scalar_type 
scalar_type
 Typename of scalar's (which may be different from T)

Public Member Functions

 Expr ()
 Default constructor.
 Expr (const T &x)
 Constructor with supplied value x.
 Expr (const int sz, const T &x)
 Constructor with size sz and value x.
 Expr (const int sz, const int i, const T &x)
 Constructor with size sz, index i, and value x.
 Expr (const Expr &x)
 Copy constructor.
template<typename S >
 Expr (const Expr< S > &x)
 Copy constructor from any Expression object.
 ~Expr ()
 Destructor.

Detailed Description

template<typename T, typename Storage>
class Sacado::CacheFad::Expr< GeneralFad< T, Storage > >

GeneralFad expression template specialization.

This template class represents a simple GeneralFad expression and mixes-in the GeneralFad interface and the expression template interface using the caching expression templates.

Definition at line 48 of file Sacado_CacheFad_GeneralFadExpr.hpp.


Member Typedef Documentation

template<typename T , typename Storage >
typedef GeneralFad<T,Storage>::value_type Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::value_type

Typename of values.

Reimplemented from Sacado::CacheFad::GeneralFad< T, Storage >.

Definition at line 52 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
typedef GeneralFad<T,Storage>::scalar_type Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::scalar_type

Typename of scalar's (which may be different from T)

Reimplemented from Sacado::CacheFad::GeneralFad< T, Storage >.

Definition at line 53 of file Sacado_CacheFad_GeneralFadExpr.hpp.


Constructor & Destructor Documentation

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( ) [inline]

Default constructor.

Definition at line 56 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( const T &  x) [inline]

Constructor with supplied value x.

Initializes value to x and derivative array is empty

Definition at line 63 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( const int  sz,
const T &  x 
) [inline]

Constructor with size sz and value x.

Initializes value to x and derivative array 0 of length sz

Definition at line 70 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( const int  sz,
const int  i,
const T &  x 
) [inline]

Constructor with size sz, index i, and value x.

Initializes value to x and derivative array of length sz as row i of the identity matrix, i.e., sets derivative component i to 1 and all other's to zero.

Definition at line 79 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( const Expr< GeneralFad< T, Storage > > &  x) [inline]

Copy constructor.

Definition at line 83 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
template<typename S >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::Expr ( const Expr< S > &  x) [inline]

Copy constructor from any Expression object.

Definition at line 87 of file Sacado_CacheFad_GeneralFadExpr.hpp.

template<typename T , typename Storage >
Sacado::CacheFad::Expr< GeneralFad< T, Storage > >::~Expr ( ) [inline]

Destructor.

Definition at line 91 of file Sacado_CacheFad_GeneralFadExpr.hpp.


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