Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 'circular_import_matrix_space_34283' into hide_features_…
Browse files Browse the repository at this point in the history
…34185
  • Loading branch information
soehms committed Aug 9, 2022
2 parents f463ac7 + 53d8d11 commit ebbd4a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/matrix/matrix_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ def get_matrix_class(R, nrows, ncols, sparse, implementation):
if isinstance(implementation, type):
return implementation

from sage.matrix.matrix_generic_dense import Matrix_generic_dense
from sage.matrix.matrix_generic_sparse import Matrix_generic_sparse
if not sparse:
if implementation is None:
# Choose default implementation:
Expand Down Expand Up @@ -303,6 +301,7 @@ def get_matrix_class(R, nrows, ncols, sparse, implementation):
return matrix_mpolynomial_dense.Matrix_mpolynomial_dense

# The fallback
from sage.matrix.matrix_generic_dense import Matrix_generic_dense
return Matrix_generic_dense

# Deal with request for a specific implementation
Expand Down Expand Up @@ -360,6 +359,7 @@ def get_matrix_class(R, nrows, ncols, sparse, implementation):
raise ValueError("'linbox-double' matrices can only deal with order < %s" % matrix_modn_dense_double.MAX_MODULUS)

if implementation == 'generic':
from sage.matrix.matrix_generic_dense import Matrix_generic_dense
return Matrix_generic_dense

if implementation == 'gap':
Expand Down Expand Up @@ -402,6 +402,7 @@ def get_matrix_class(R, nrows, ncols, sparse, implementation):
return matrix_double_sparse.Matrix_double_sparse

# the fallback
from sage.matrix.matrix_generic_sparse import Matrix_generic_sparse
return Matrix_generic_sparse


Expand Down

0 comments on commit ebbd4a4

Please sign in to comment.