]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: add ComplexHermitianSimpleEJA to random_eja().
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 6 Jul 2019 03:04:32 +0000 (23:04 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 29 Jul 2019 03:19:01 +0000 (23:19 -0400)
mjo/eja/euclidean_jordan_algebra.py

index 5d17e88f52104d957a0026697e8309017c513f1e..6bc53a172f5bd72ccc3cec7315bb908425160f57 100644 (file)
@@ -652,9 +652,9 @@ def random_eja():
         Euclidean Jordan algebra of degree...
 
     """
-    n = ZZ.random_element(1,10).abs()
-    constructor = choice([eja_rn, eja_ln, eja_sn])
-    return constructor(dimension=n, field=QQ)
+    n = ZZ.random_element(1,5).abs()
+    constructor = choice([eja_rn, eja_ln, eja_sn, ComplexHermitianSimpleEJA])
+    return constructor(n, field=QQ)