Sundance::MoveConstantsToLeftOfSum Class Reference

Inheritance diagram for Sundance::MoveConstantsToLeftOfSum:

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

List of all members.

Public Member Functions

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

Detailed Description

Transform a sum by moving any constants to the left:

\[ x + a \rightarrow a + x \]

Definition at line 166 of file SundanceStdSumTransformations.hpp.

Constructor & Destructor Documentation

Sundance::MoveConstantsToLeftOfSum::MoveConstantsToLeftOfSum (  )  [inline]

Definition at line 170 of file SundanceStdSumTransformations.hpp.

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

Definition at line 173 of file SundanceStdSumTransformations.hpp.

Member Function Documentation

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

Site Contact