Sundance::MoveConstantsToLeftOfProduct Class Reference

Inheritance diagram for Sundance::MoveConstantsToLeftOfProduct:

Sundance::ProductTransformation Sundance::SymbolicTransformation Sundance::ObjectWithClassVerbosity< SymbolicTransformation > Playa::ObjectWithVerbosity

List of all members.

Public Member Functions

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


Detailed Description

Transform a product by moving any constants to the left:

\[ x \times a \rightarrow a \times x \]

Definition at line 154 of file SundanceStdProductTransformations.hpp.


Constructor & Destructor Documentation

Sundance::MoveConstantsToLeftOfProduct::MoveConstantsToLeftOfProduct (  )  [inline]

Definition at line 158 of file SundanceStdProductTransformations.hpp.

virtual Sundance::MoveConstantsToLeftOfProduct::~MoveConstantsToLeftOfProduct (  )  [inline, virtual]

Definition at line 161 of file SundanceStdProductTransformations.hpp.


Member Function Documentation

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

Site Contact