From 1bae84b14cb9352727a670be01b5ef06dbcc7328 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 23 Aug 2019 22:08:53 -0400 Subject: [PATCH] eja: fix computation of the max test case sizes. --- mjo/eja/eja_algebra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index ae5baa0..80147df 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -694,7 +694,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule): # not worry about it. raise NotImplementedError - n = ZZ.random_element(1, cls._max_test_case_size()) + n = ZZ.random_element(cls._max_test_case_size()) + 1 return cls(n, field, **kwargs) @@ -899,7 +899,7 @@ class MatrixEuclideanJordanAlgebra(FiniteDimensionalEuclideanJordanAlgebra): def _max_test_case_size(): # Play it safe, since this will be squared and the underlying # field can have dimension 4 (quaternions) too. - return 3 + return 2 @classmethod def _denormalized_basis(cls, n, field): @@ -1138,7 +1138,7 @@ class RealSymmetricEJA(RealMatrixEuclideanJordanAlgebra): @staticmethod def _max_test_case_size(): - return 5 # Dimension 10 + return 4 # Dimension 10 -- 2.44.2