]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: pass check=False in the fast charpoly_coefficients() method.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Nov 2020 12:45:25 +0000 (07:45 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Nov 2020 12:45:25 +0000 (07:45 -0500)
mjo/eja/eja_algebra.py

index 7f7b1f9f1c09703a2d8f48e295b203604fa5556c..0da3eef9aa6e7835b6a6291d008bed4e31571872 100644 (file)
@@ -1160,10 +1160,13 @@ class MatrixEuclideanJordanAlgebra(FiniteDimensionalEuclideanJordanAlgebra):
 
             # Do this over the rationals and convert back at the end.
             # Only works because we know the entries of the basis are
-            # integers.
+            # integers. The argument ``check=False`` is required
+            # because the trace inner-product method for this
+            # class is a stub and can't actually be checked.
             J = MatrixEuclideanJordanAlgebra(QQ,
                                              basis,
-                                             normalize_basis=False)
+                                             normalize_basis=False,
+                                             check=False)
             a = J._charpoly_coefficients()
 
             # Unfortunately, changing the basis does change the