]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: speed up the double-subalgebra test by using QQ.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 27 Feb 2021 23:27:41 +0000 (18:27 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 27 Feb 2021 23:27:41 +0000 (18:27 -0500)
mjo/eja/eja_subalgebra.py

index 7ba8f7970a3e474a583684af8f9a5cb3dc4e7115..92fd296b3003a06e7bafb79f9d9c37d9cb6b13cb 100644 (file)
@@ -71,15 +71,15 @@ class FiniteDimensionalEJASubalgebraElement(FiniteDimensionalEJAElement):
         We can convert back and forth faithfully::
 
             sage: set_random_seed()
-            sage: J = random_eja()
+            sage: J = random_eja(field=QQ, orthonormalize=False)
             sage: x = J.random_element()
-            sage: A = x.subalgebra_generated_by()
+            sage: A = x.subalgebra_generated_by(orthonormalize=False)
             sage: A(x).superalgebra_element() == x
             True
             sage: y = A.random_element()
             sage: A(y.superalgebra_element()) == y
             True
-            sage: B = y.subalgebra_generated_by()
+            sage: B = y.subalgebra_generated_by(orthonormalize=False)
             sage: B(y).superalgebra_element() == y
             True