This should probably be considered a bug. Most likely our nullspace
algorithm is doing something inefficient.

Since your matrix is mostly zeros, you might try using a sparse matrix
(SparseMatrix).

Aaron Meurer

On Wed, Apr 25, 2018 at 10:41 AM, Emanuel Sygal <[email protected]> wrote:
> I am trying to find a basis for the nullspace of some matrix $A$ in sympy of
> size (384, 120). When calling
> A.nullspace()
> The RAM usage gradually rises up to the 60GB that I have, and then the
> kernel dies.The matrix consists of elements that are just 1,-1,0 and mostly
> zero.I create the matix like this:
> A = sympy.Matrix(vectors_list)
>
> where every element of vectors_list is a tuple of elements of type
> sympy.core.numbers.I tried setting the environment variables
> "SYMPY_USE_CACHE", "SYMPY_INT_TRACE" to "no"
> and it did not make a change.
>
> I also posted here:
> https://stackoverflow.com/questions/49997220/sympy-memory-explosion-when-computing-nullspace-of-a-small-matrix?noredirect=1#
> without luck. What can I do more?
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/4b5bb5ee-2a42-4489-b062-22c4a3098e90%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6LHGjxFpy%2BVTFMzTH4QkGSkfhdKS9NPfmbZyC4qxXSCig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to