]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
mjo/ldlt.py: fix a dimension in block_ldlt_naive().
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Oct 2020 02:11:19 +0000 (22:11 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Oct 2020 02:11:19 +0000 (22:11 -0400)
mjo/ldlt.py

index c8483c707afa6f3b67935e451b7c979401661b09..4955d9fa9248f2bde240f70a526062f927aae9b5 100644 (file)
@@ -325,7 +325,7 @@ def block_ldlt_naive(A, check_hermitian=False):
 
     # The top-left 2x2 submatrix is now our pivot.
     E = A1[:2,:2]
-    C = A1[2:n,0]
+    C = A1[2:n,0:2]
     B = A1[2:,2:]
 
     if B.nrows() == 0: