Enable pickling for symbolic expressions
In pytential.symbolic.primitives
,
-
For each subclass of Expression
with overrided__new__
, either add default value to all positional arguments, or add__getnewargs__
. -
For each subclass of Expression
, addinit_arg_names
, so that__setstate__
inExpression
can be processed correctly. -
Investigate why after pickling, IntG.kernel_arguments
changes from a dictionary to a tuple.
Edited by Hao Gao