Public Member Functions
Sundance::RearrangeLeftProductWithConstant Class Reference
Inheritance diagram for Sundance::RearrangeLeftProductWithConstant:
Sundance::ProductTransformation Sundance::SymbolicTransformation Sundance::ObjectWithClassVerbosity< SymbolicTransformation > Playa::ObjectWithVerbosity

List of all members.

Public Member Functions

 RearrangeLeftProductWithConstant ()
virtual ~RearrangeLeftProductWithConstant ()
virtual bool doTransform (const RCP< ScalarExpr > &left, const RCP< ScalarExpr > &right, RCP< ScalarExpr > &rtn) const

Detailed Description

Rearrange a product whose left operand is a product including a constant such that constants are grouped on the left:

\[ (\alpha u)\beta \rightarrow \alpha\beta u \]

\[ (\alpha u)v \rightarrow \alpha (u v) \]

Definition at line 350 of file SundanceStdProductTransformations.hpp.


Constructor & Destructor Documentation

Definition at line 354 of file SundanceStdProductTransformations.hpp.

Definition at line 357 of file SundanceStdProductTransformations.hpp.


Member Function Documentation

bool RearrangeLeftProductWithConstant::doTransform ( const RCP< ScalarExpr > &  left,
const RCP< ScalarExpr > &  right,
RCP< ScalarExpr > &  rtn 
) const [virtual]

Site Contact