Rearrange a product of a constant and an integral so that the constant is under the integral sign:
. More...
Public Member Functions | |
| TakeConstantUnderIntegralSign () | |
| virtual | ~TakeConstantUnderIntegralSign () |
| virtual bool | doTransform (const RCP< ScalarExpr > &left, const RCP< ScalarExpr > &right, RCP< ScalarExpr > &rtn) const |
| Test whether the transform is applicable in this case, and if it is, apply it. | |
Rearrange a product of a constant and an integral so that the constant is under the integral sign:
.
Definition at line 361 of file SundanceStdProductTransformations.hpp.
| Sundance::TakeConstantUnderIntegralSign::TakeConstantUnderIntegralSign | ( | ) | [inline] |
Definition at line 365 of file SundanceStdProductTransformations.hpp.
| virtual Sundance::TakeConstantUnderIntegralSign::~TakeConstantUnderIntegralSign | ( | ) | [inline, virtual] |
Definition at line 368 of file SundanceStdProductTransformations.hpp.
| bool TakeConstantUnderIntegralSign::doTransform | ( | const RCP< ScalarExpr > & | left, |
| const RCP< ScalarExpr > & | right, | ||
| RCP< ScalarExpr > & | rtn | ||
| ) | const [virtual] |
Test whether the transform is applicable in this case, and if it is, apply it.
The return value is true is the transformation was applied, otherwise false. Returns by non-const reference the transformed expression.
Implements Sundance::ProductTransformation.
Definition at line 596 of file SundanceStdProductTransformations.cpp.
References Sundance::SumOfIntegrals::multiplyByConstant().