Conversation
b5fe2b5 to
a2d8725
Compare
|
I recalled that enabling SymEngine will fail miserably, this PR is just a reproduction and is expected to fail, will keep it for a while until I figure out why. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #37 +/- ##
=======================================
Coverage 67.84% 67.84%
=======================================
Files 9 9
Lines 4684 4684
=======================================
Hits 3178 3178
Misses 1506 1506 ☔ View full report in Codecov by Sentry. |
|
The only error left is |
|
Will add a SymEngine build instead of enabling it for all builds as @eric-wieser suggested when I have time to work on it:
|
|
From #149 (comment) :
Will need to adjusting accordingly too. |
|
This pull request fixes 1 alert when merging a6970f8 into ca66680 - view on LGTM.com fixed alerts:
|
2c5064c to
d45d67f
Compare
|
This pull request fixes 1 alert when merging d45d67f into 8ce4920 - view on LGTM.com fixed alerts:
|
The time is weird. Why is sympy-1.5 slower? |
eric-wieser
left a comment
There was a problem hiding this comment.
Think I know why this miraculously works yet isn't faster...
| from sympy.core.backend import ( | ||
| expand, symbols, zeros, Symbol, Function, S, Add | ||
| ) | ||
| from sympy import Matrix, Transpose |
There was a problem hiding this comment.
If you use sympy's Matrix, expressions will be converted to SymPy and you'll lose the performance benefits of SymEngine
There was a problem hiding this comment.
I guessed so. The problem here is if I don't use sympy's Matrix, it will fail:
TypeError: can't set attributes of built-in/extension type 'symengine.lib.symengine_wrapper.MutableDenseMatrix'
due to lines like https://github.com/pygae/galgebra/blob/master/galgebra/printer.py#L628
There was a problem hiding this comment.
In the long run, we probably should not be attempting to override __str__
There was a problem hiding this comment.
I think this will be easier to fix once we drop support for Python 2.7 and rewrite the printer somehow.
TypeError: can't set attributes of built-in/extension type 'symengine.lib.symengine_wrapper.Basic'
TypeError: can't set attributes of built-in/extension type 'symengine.lib.symengine_wrapper.MutableDenseMatrix'
|
This looks like an incompatibility between symengine and sympy to me: Somewhat related: symengine/symengine.py#302 |
|
This looks like a case where calling |
|
This pull request fixes 1 alert when merging d48355d into 8ce4920 - view on LGTM.com fixed alerts:
|
|
Now it fails at https://app.circleci.com/jobs/github/pygae/galgebra/944/tests with 4 erros:
|
|
There are more errors than that, they're just hidden under "more" |
|
Ah, you're using the new GUI which has no "more" button any longer. |
Have you found any more error types? |
|
We need a more efficient way to "uniq" and filter errors. |
Seems not the same issue. We could easily work around this or fix it at like https://github.com/symengine/symengine.py/blob/master/symengine/lib/symengine_wrapper.pyx#L1786
|
Agreed, an upstream patch to symengine is likely the way to go. |
Extracted from #37 . This will only partially enable SymEngine.
|
Most of the work in this PR is no longer relevant today. In pursuit of the performance for symbolic calculation, my bet is now on things like https://www.ginac.de/ or https://github.com/egraphs-good/egg (see #42 ) and their marriage with Lean. Maybe someone else would be still interested in enabling SymEngine with GAlgebra, but I probably won't invest more time into it. Closing. |

Uh oh!
There was an error while loading. Please reload this page.