]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: make _max_random_instance_size() abstract.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 20 Nov 2020 15:12:30 +0000 (10:12 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 20 Nov 2020 15:12:30 +0000 (10:12 -0500)
mjo/eja/eja_algebra.py

index aec6b50e7f5c31bfb73cb8de06ec4863cc454a66..a7a076bb056a0e29c3e93d73ac881378cb518e4e 100644 (file)
@@ -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.