Skip to content

Commit

Permalink
remove unnecessary import, singularity check
Browse files Browse the repository at this point in the history
if the matrix `U` is singular, the process will still result in a matrix but it will fail to have the expected property, namely `B*B.H == U`.
  • Loading branch information
jacksonwalters committed Mar 3, 2025
1 parent 6fd2bd6 commit e1b0305
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sage/matrix/matrix2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12988,14 +12988,10 @@ cdef class Matrix(Matrix1):
True
"""
from sage.matrix.constructor import identity_matrix
from sage.misc.functional import sqrt

if not self.is_hermitian():
raise ValueError("matrix is not Hermitian")

if self.is_singular():
raise ValueError("matrix must be nonsingular")

F = self._base_ring
n = self.nrows()

Expand Down

0 comments on commit e1b0305

Please sign in to comment.