Provides a means for extracting the coefficient of an expression. Typically used for obtaining 'a' out of the polynomial a*x + b*y + c*z.
More...
Data Structures |
struct | has_factor< FactorType, ExpressionType > |
struct | has_factor< FactorType, FactorType > |
struct | has_factor< FactorType, ct_binary_expr< LHS, op_plus< NumericT >, RHS > > |
struct | has_factor< FactorType, ct_binary_expr< LHS, op_minus< NumericT >, RHS > > |
struct | has_factor< FactorType, ct_binary_expr< LHS, op_mult< NumericT >, RHS > > |
struct | has_factor< FactorType, ct_binary_expr< LHS, op_div< NumericT >, RHS > > |
struct | extract_factor_from_product< FactorType, LHS, NumericT, RHS, lhs_has_factor, rhs_has_factor > |
struct | extract_factor_from_product< FactorType, LHS, NumericT, RHS, true, false > |
struct | extract_factor_from_product< FactorType, LHS, NumericT, RHS, false, true > |
struct | extract_factor_from_product< FactorType, LHS, NumericT, RHS, true, true > |
struct | coefficient_impl< FactorType, ExpressionType > |
struct | coefficient_impl< FactorType, FactorType > |
struct | coefficient_impl< FactorType, ct_binary_expr< LHS, op_plus< NumericT >, RHS > > |
struct | coefficient_impl< FactorType, ct_binary_expr< LHS, op_minus< NumericT >, RHS > > |
struct | coefficient_impl< FactorType, ct_binary_expr< LHS, op_mult< NumericT >, RHS > > |
struct | coefficient_impl< FactorType, ct_binary_expr< FactorType, op_mult< NumericT >, RHS > > |
struct | coefficient_impl< FactorType, ct_binary_expr< LHS, op_mult< NumericT >, FactorType > > |
struct | coefficient_impl< FactorType, ct_binary_expr< FactorType, op_mult< NumericT >, FactorType > > |
struct | coefficient_impl< FactorType, ct_binary_expr< LHS, op_div< NumericT >, RHS > > |
struct | coefficient< FactorType, ExpressionType > |
| User metafunction for extracting the coefficient of a variable or sub-expression from an expression. More...
|
Namespaces |
namespace | viennamath |
| The main ViennaMath namespace. All types and functions for the user reside here.
|
namespace | viennamath::result_of |
| The namespace containing a set of metafunctions which can be used by the ViennaMath library user.
|
namespace | viennamath::result_of::detail |
| Implementation details for the metafunctions in ViennaMath. Not intended for direct use.
|
Functions |
template<typename FactorType , typename ExpressionType > |
viennamath::result_of::coefficient
< FactorType, ExpressionType >
::type | coefficient (FactorType const &f, ExpressionType const &e) |
| User function for extracting the coefficient of a variable or sub-expression from an expression.
|
Provides a means for extracting the coefficient of an expression. Typically used for obtaining 'a' out of the polynomial a*x + b*y + c*z.