pymbolic icon indicating copy to clipboard operation
pymbolic copied to clipboard

A simple package to do symbolic math (focus on code gen and DSLs)

Results 23 pymbolic issues
Sort by recently updated
recently updated
newest added

I was playing with the library, and I noticed that expressions seem to require these boilerplate `__getinitargs__` and `init_arg_names` methods. Given that this is Python 3.6+ it should be easy...

I'm currently working on code to perform "delayed operations" on images. After working at it for awhile I'm realizing that what I'm writing is really an expression tree, and what...

Minimal reproducer: ```python In [1]: import pymbolic as p In [2]: p.parse("True") Out[2]: Variable('True') In [3]: p.parse("False") Out[3]: Variable('False') ```

Is there a mapper for listing all subexpressions of an expression? For example, `x + 2*y` becomes `[x + 2*y, 2*y, x, y]`, sorted based on precedence. Otherwise, if you...

Moved to pytools.dot. Needs https://github.com/inducer/pytools/pull/151 (and a new pytools release)

The following test doesn't seem to be making any assertions about expected behavior: https://github.com/inducer/pymbolic/blob/13e83df783d00a74b0d13d690f8f96d806646e13/test/test_pymbolic.py#L85-L94