ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 08 Dec 2021 17:55:22 +0100Shared Matrix modification in parallelhttps://ask.sagemath.org/question/60167/shared-matrix-modification-in-parallel/Hi!
I would like to implement Gaussian elimination on a large matrix in parallel for speed reasons. So I would like to have multiple threads/processes accessing and updating entries of a single copy of this matrix at the same time. Is this possible in SageMath on Linux?BakerbakuraWed, 08 Dec 2021 17:55:22 +0100https://ask.sagemath.org/question/60167/parallel matrix rankhttps://ask.sagemath.org/question/52889/parallel-matrix-rank/ I have* a (relatively) large non-square symbolic matrix $M$ which I would like to calculate the rank of. The entries of the matrix are polynomials with coefficients in a (small) finite field, and the matrix is relatively sparse, although currently it's being treated as a non-sparse matrix.
The rank could simply be calculated as `M.rank()`, but I'm not sure whether or not the matrix rank algorithm implemented works in parallel or not. Could someone clarify whether or not parallel calculation of matrix rank is implemented in Sage or not? If it is implemented but isn't used by default, how do I make use of the parallel version?
Thanks!
(*) It's more accurate to say that I'm *going to have* such a matrix; my initial version of the code was written in Mathematica, and I'm currently porting the code to Sage after too many headaches with Mathematica's handling of finite fields, which could definitely be improved upon. So unfortunately I'm not yet at the stage of running `M.rank()` and checking whether or not it runs in parallel.BakerbakuraThu, 06 Aug 2020 13:08:00 +0200https://ask.sagemath.org/question/52889/