Saving compiled expressions
I have a large symbolic expression, such that converting it to fast callable takes more than a minute. After the conversion, evaluation is much faster than the symbolic evaluation. However, I don't know how to save the fast_callable so I could use it in other scripts. When I tried pickling it, I got the following error:
AttributeError: 'sage.ext.interpreters.wrapper_cdf.Wrapper_cdf' object has no attribute 'write'
Using sage's save and load methods, I was able to load it to another scipt, but when I tried to call it I got the ValueError
.
Any help would be welcome.