Support for SparseArray #948
Li-Xiang-Ideal
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary of previous discussion in #946
Correct result of
Part,Equal,ArrayQ, etc. onSparseArrayis expected.SparseArray[{{1, 2} -> 3}, {3, 3}][[1]] === SparseArray[{{2} -> 3}, {3}]SparseArray[{{1, 2} -> 1, {2, 1} -> -1}] == {{0, 1}, {-1, 0}}ArrayQ[SparseArray[{{1, 2} -> 1, {2, 1} -> -1}]] === TrueArrayQ[SparseArray[3, Pi]] === FalseArrayQ[SparseArray[{{1, 8} -> 3}, {3, 3}]] === FalseTo be continued...
Methods to implement
SparseArraySparseArrayExpressionas special type ofExpression(likeListExpression)SymPyorSciPyThings to keep in mind
Current status
SciPyis not particularly designed to work with symbolic expressionsSymPysupportsSparseMatrixonly (notSparseArray)To be continued...
Issues to be discussed
SparseArray? Use as many existing packages as possible, or define our new type ofSparseArrayExpressionwhile leaving specific evaluations likeRowReduceandSingularValueDecompositiontoSymPyorSciPy, or any other approaches?SymPy,SciPy, and?SparseArrayExpressionis needed, how to organize the code? Can we implement it inmathics.corewithout being too entangled with the rest of the code (which means a new branch is preferred), or shall we use Pymathics module?To be continued...
Conclusions from new discussions
To be continued...
Beta Was this translation helpful? Give feedback.
All reactions