both are implemented to work on Basic:

>>> cse(Basic(exp(x), exp(x) + y, x/y))
([(x0, exp(x))], [Basic(x0, x0 + y, x/y)])
>>> count_ops(Basic(exp(x), exp(x) + y, x/y))
4


On Tue, Apr 9, 2013 at 1:27 AM, Matthew Rocklin <[email protected]> wrote:

> Do we have implementations of tools like common subexpression elimination
> (cse) and operation counting (count_ops) that aren't specific to Exprs?
>  What do we have that is designed to work on Basics?
>
> I want to collect some very basic data on some large MatrixExprs (common
> subexprssions and number of operations in the graph) and want to make sure
> I'm not reinventing some wheel.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to