Public Member Functions
Sundance::TakeConstantUnderIntegralSign Class Reference

Rearrange a product of a constant and an integral so that the constant is under the integral sign:

\[ \alpha \int u \rightarrow \int \alpha u \]

. More...

Inheritance diagram for Sundance::TakeConstantUnderIntegralSign:
Sundance::ProductTransformation Sundance::SymbolicTransformation Sundance::ObjectWithClassVerbosity< SymbolicTransformation > Sundance::DefaultObjectWithVerbosity Sundance::ObjectWithVerbosityBase

List of all members.

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.

Detailed Description

Rearrange a product of a constant and an integral so that the constant is under the integral sign:

\[ \alpha \int u \rightarrow \int \alpha u \]

.

Definition at line 361 of file SundanceStdProductTransformations.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Site Contact