X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Feja%2Feja_algebra.py;h=587d8e339463adaafb0a390ec164e76a6e5ca0c4;hp=b2891e577e9aa0c5e36b64b6a537807e9330d0e6;hb=cf5e64b70869df65c7bb38888de54b1083e60d45;hpb=8d91b5b5af605dabe11a024ab030f2fcb2828cde diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index b2891e5..587d8e3 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -2281,6 +2281,14 @@ class OctonionHermitianEJA(MatrixEJA, RationalBasisEJA, ConcreteEJA): A = OctonionMatrixAlgebra(n, scalars=field) super().__init__(A, **kwargs) + if n == 3: + from mjo.eja.eja_cache import albert_eja_coeffs + a = albert_eja_coeffs(self.coordinate_polynomial_ring()) + if self._rational_algebra is None: + self._charpoly_coefficients.set_cache(a) + else: + self._rational_algebra._charpoly_coefficients.set_cache(a) + class AlbertEJA(OctonionHermitianEJA): r"""