#include <Sacado_ELRFad_GeneralFadExpr.hpp>
Inheritance diagram for Sacado::ELRFad::Expr< GeneralFad< T, Storage > >:

Public Types | |
| typedef T | value_type |
| Typename of values. | |
| typedef GeneralFad< T, Storage > | base_expr_type |
| Typename of base-expressions. | |
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. | |
| void | computePartials (const T &bar, T partials[]) const |
| Return partials w.r.t. arguments. | |
| void | getTangents (int i, T dots[]) const |
Return tangent component i of arguments. | |
| template<int Arg> | |
| bool | isActive () const |
| Return whether argument is active. | |
| template<int Arg> | |
| T | getTangent (int i) const |
Return tangent component i of argument Arg. | |
Static Public Attributes | |
| static const int | num_args = 1 |
| Number of arguments. | |
This template class represents a simple GeneralFad expression and mixes-in the GeneralFad interface and the expression template interface.
Definition at line 48 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| typedef T Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::value_type |
Typename of values.
Reimplemented from Sacado::ELRFad::GeneralFad< T, Storage >.
Definition at line 53 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| typedef GeneralFad<T,Storage> Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::base_expr_type |
| Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::Expr | ( | ) | [inline] |
| Sacado::ELRFad::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 69 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| Sacado::ELRFad::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 76 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| Sacado::ELRFad::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 85 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::Expr | ( | const Expr< GeneralFad< T, Storage > > & | x | ) | [inline] |
| Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::Expr | ( | const Expr< S > & | x | ) | [inline] |
Copy constructor from any Expression object.
Definition at line 93 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::~Expr | ( | ) | [inline] |
| void Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::computePartials | ( | const T & | bar, | |
| T | partials[] | |||
| ) | const [inline] |
| void Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::getTangents | ( | int | i, | |
| T | dots[] | |||
| ) | const [inline] |
Return tangent component i of arguments.
Definition at line 105 of file Sacado_ELRFad_GeneralFadExpr.hpp.
| bool Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::isActive | ( | ) | const [inline] |
| T Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::getTangent | ( | int | i | ) | const [inline] |
Return tangent component i of argument Arg.
Definition at line 118 of file Sacado_ELRFad_GeneralFadExpr.hpp.
const int Sacado::ELRFad::Expr< GeneralFad< T, Storage > >::num_args = 1 [static] |
1.4.7