From: Michael Orlitzky Date: Fri, 20 Nov 2020 15:12:30 +0000 (-0500) Subject: eja: make _max_random_instance_size() abstract. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=f97da50014d95e8c9dd20fbf79e2c6dffcbf3884;p=sage.d.git eja: make _max_random_instance_size() abstract. --- diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index aec6b50..a7a076b 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -233,7 +233,7 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule): interpreted to be far less than the dimension) should override with a smaller number. """ - return 5 + raise NotImplementedError def _repr_(self): """ @@ -2056,6 +2056,10 @@ class HadamardEJA(RationalBasisEuclideanJordanAlgebra): **kwargs) self.rank.set_cache(n) + @staticmethod + def _max_random_instance_size(): + return 5 + def inner_product(self, x, y): """ Faster to reimplement than to use natural representations. @@ -2166,6 +2170,10 @@ class BilinearFormEJA(RationalBasisEuclideanJordanAlgebra): **kwargs) self.rank.set_cache(min(n,2)) + @staticmethod + def _max_random_instance_size(): + return 5 + def inner_product(self, x, y): r""" Half of the trace inner product.