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 (fixup)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 8, 2021
1 parent ac58286 commit 6d4ee6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10647,7 +10647,7 @@ cdef class Matrix(Matrix1):
True
"""
R = self.base_ring()
if instance(R, (sage.rings.abc.RealDoubleField, sage.rings.abc.ComplexDoubleField)):
if isinstance(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 6d4ee6e

Please sign in to comment.