]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
eja: add a link to a trac ticket in random_element().
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Nov 2020 21:49:34 +0000 (16:49 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Nov 2020 21:49:34 +0000 (16:49 -0500)
mjo/eja/eja_algebra.py

index 91088a2eb799ce616bfffc5ee3e3980afe17f4ac..7ae61d513d53246f588a9610f20c5acb105d069b 100644 (file)
@@ -698,12 +698,16 @@ class FiniteDimensionalEuclideanJordanAlgebra(CombinatorialFreeModule):
         if self.base_ring() is AA:
             # The "random element" method of the algebraic reals is
             # stupid at the moment, and only returns integers between
-            # -2 and 2, inclusive. Instead, we implement our own
-            # "random vector" method, and then coerce that into the
-            # algebra. We use the vector space degree here instead of
-            # the dimension because a subalgebra could (for example) be
-            # spanned by only two vectors, each with five coordinates.
-            # We need to generate all five coordinates.
+            # -2 and 2, inclusive:
+            #
+            #   https://trac.sagemath.org/ticket/30875
+            #
+            # Instead, we implement our own "random vector" method,
+            # and then coerce that into the algebra. We use the vector
+            # space degree here instead of the dimension because a
+            # subalgebra could (for example) be spanned by only two
+            # vectors, each with five coordinates.  We need to
+            # generate all five coordinates.
             if thorough:
                 v *= QQbar.random_element().real()
             else: