From e1b0305ab1f7c2bfbd2600c2e636ec0061fa2566 Mon Sep 17 00:00:00 2001 From: Jackson Walters Date: Mon, 3 Mar 2025 15:53:28 -0500 Subject: [PATCH] remove unnecessary import, singularity check 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`. --- src/sage/matrix/matrix2.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx index e568083fbd0..dd63273548a 100644 --- a/src/sage/matrix/matrix2.pyx +++ b/src/sage/matrix/matrix2.pyx @@ -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()