Sacado
Development
|
Binary expression template. More...
#include <Sacado_Tay_CacheTaylorExpr.hpp>
Public Types | |
typedef ExprT1::value_type | value_type_1 |
Typename of the expression values. | |
typedef ExprT2::value_type | value_type_2 |
typedef Sacado::Promote < value_type_1, value_type_2 > ::type | value_type |
typedef ExprT1::scalar_type | scalar_type_1 |
Typename of the expression scalars. | |
typedef ExprT2::scalar_type | scalar_type_2 |
typedef Sacado::Promote < scalar_type_1, scalar_type_2 > ::type | scalar_type |
typedef ExprT1::base_expr_type | base_expr_type_1 |
Typename of the base expression. | |
typedef ExprT2::base_expr_type | base_expr_type_2 |
typedef Sacado::Promote < base_expr_type_1, base_expr_type_2 >::type | base_expr_type |
Public Member Functions | |
BinaryExpr (const ExprT1 &expr1, const ExprT2 &expr2) | |
Constructor. | |
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 operation 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. | |
Protected Attributes | |
ExprT1 | expr1_ |
Left argument. | |
ExprT2 | expr2_ |
Right argument. | |
Op< ExprT1, ExprT2 > | op_ |
Operator. | |
Binary expression template.
This template class represents a binary operation of the form op(a1,a2) where a1 is the left argument of type ExprT1
, r is the right argument of type ExprT2
, and op is the operation represented by type Op
. The operation is evaluated by the static methods Op::computeValue() and Op::computeDx().