]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: remove obsolete workaround for SageMath trac ticket #28327.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 14 Oct 2019 13:26:26 +0000 (09:26 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 14 Oct 2019 13:26:26 +0000 (09:26 -0400)
mjo/eja/eja_algebra.py

index 2c689d79d3c85d5d6f4d0daca39ca3f0e649540d..df6a0487c7d4856d42a04bea78d80034ea71ab0d 100644 (file)
@@ -625,14 +625,6 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule):
         return self.linear_combination(zip(self.gens(), coeffs))
 
 
-    def random_element(self):
-        # Temporary workaround for https://trac.sagemath.org/ticket/28327
-        if self.is_trivial():
-            return self.zero()
-        else:
-            s = super(FiniteDimensionalEuclideanJordanAlgebra, self)
-            return s.random_element()
-
     def random_elements(self, count):
         """
         Return ``count`` random elements as a tuple.