From 251d80b3473331d895be87f736b688f57963a9bb Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 30 Aug 2019 11:48:59 -0400 Subject: [PATCH] eja: allow random_eja() to take a "field" argument. --- mjo/eja/eja_algebra.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 7a65fab..2c689d7 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -852,7 +852,7 @@ class RealCartesianProductEJA(FiniteDimensionalEuclideanJordanAlgebra, return x.to_vector().inner_product(y.to_vector()) -def random_eja(): +def random_eja(field=QQ): """ Return a "random" finite-dimensional Euclidean Jordan Algebra. @@ -889,7 +889,7 @@ def random_eja(): """ classname = choice(KnownRankEJA.__subclasses__()) - return classname.random_instance() + return classname.random_instance(field=field) -- 2.44.2