From: Michael Orlitzky Date: Sat, 24 Aug 2019 02:08:53 +0000 (-0400) Subject: eja: fix computation of the max test case sizes. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=1bae84b14cb9352727a670be01b5ef06dbcc7328;p=sage.d.git eja: fix computation of the max test case sizes. --- 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