Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make rational matrix rref default to flint #39733

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/sage/matrix/matrix_rational_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1499,9 +1499,10 @@ cdef class Matrix_rational_dense(Matrix_dense):

- ``algorithm`` -- an optional specification of an algorithm. One of

- ``None``: (default) uses flint for small dimension and multimodular otherwise
- ``None``: (default) uses flint,

- ``'flint'``: use the flint library,
- ``'flint'``: use the flint library (which automatically chooses between Gaussian
elimination, multimodular, and fraction-free LU decomposition),

- ``'padic'``: an algorithm based on the IML `p`-adic solver,

Expand Down Expand Up @@ -1560,10 +1561,7 @@ cdef class Matrix_rational_dense(Matrix_dense):
self.check_mutability()

if algorithm is None:
if self._nrows <= 25 or self._ncols <= 25:
algorithm = 'flint'
else:
algorithm = 'multimodular'
algorithm = 'flint'

if algorithm == 'flint':
pivots = self._echelonize_flint()
Expand Down
Loading