I made all three PRs from modifications I needed to do in order for me to productively use SymPy for code generation of finite difference formulae in a larger C++ code base. Hence they are in the spirit of using tensor.Indexed, tensor.Idx and tensor.IndexedBase in a more general setting than just tensors. (I could picture them being moved to core at some point even).
I have some more modifications in the pipline but I already forsee merge issues wrt to changing argument orders in docstrings and tests, so before I submit any more PRs I think it would be good to have these reviewed and merged (or rejected if you disagree with me).
Looking forward to your feeback (those of you interested)!
Regards /Björn
Øyvind Jensen
unread,
Apr 4, 2014, 1:46:21 AM4/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
Hi Björn, It is really cool that you are working on this, thanks for the PRs! I am not uptodate on the inner workings of SymPy any longer, but I will take a look at the patches and see if there is anything I can add.
Øyvind
Björn Dahlgren
unread,
Apr 4, 2014, 2:31:30 AM4/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
Hi Øyvind,
Thank you for taking your time looking at the PR's.
Are these platform dependent (still)? If so: I might need to make those tests more robust not to unsettle users of other platforms who might get test failures (even though those test failures would be benign since actual code generated would still work as expected)? Unfortunately I do not have access to Mac / Windows atm.
Aaron Meurer
unread,
Apr 10, 2014, 7:39:15 PM4/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
No, they shouldn't be. All the tests are run with hash randomization
enabled, so if they varied, you would notice right away. The
"platform" in question here is just 32-bit vs. 64-bit, which has
different hash values, but with python -R (or Python 3.3+) hash values
are randomized. But for some time now SymPy has been written so that
the output of anything doesn't depend on hash values.