Sundance::MoveUnaryMinusOutsideProduct Class Reference

Inheritance diagram for Sundance::MoveUnaryMinusOutsideProduct:

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

List of all members.

Public Member Functions

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

Detailed Description

Transform a product by any unary minus operations outside the product

\[ (-x) \times y \rightarrow -(x \times y) \]

\[ x \times (-y) \rightarrow -(x \times y) \]

\[ )-x) \times (-y) \rightarrow x \times y \]

Definition at line 182 of file SundanceStdProductTransformations.hpp.

Constructor & Destructor Documentation

Sundance::MoveUnaryMinusOutsideProduct::MoveUnaryMinusOutsideProduct (  )  [inline]

Definition at line 186 of file SundanceStdProductTransformations.hpp.

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

Definition at line 189 of file SundanceStdProductTransformations.hpp.

Member Function Documentation

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

Site Contact