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

Commit

Permalink
Matrix.gram_schmidt: Use sage.rings.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 5, 2021
1 parent a657670 commit bfc4d4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10649,10 +10649,8 @@ cdef class Matrix(Matrix1):
sage: mu*G == A
True
"""
import sage.rings.real_double
import sage.rings.complex_double
R = self.base_ring()
if R in [sage.rings.real_double.RDF, sage.rings.complex_double.CDF]:
if instance(R, (sage.rings.abc.RealDoubleField, sage.rings.abc.ComplexDoubleField)):
Q, R = self.transpose().QR()
m = R.nrows(); n = R.ncols()
if m > n:
Expand Down

0 comments on commit bfc4d4c

Please sign in to comment.