From: Michael Orlitzky Date: Wed, 3 Mar 2021 20:03:18 +0000 (-0500) Subject: eja: fix the matrix EJA trace inner-product. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8ccf1d8af20cea17897aed21426b17872fd0fca3;p=sage.d.git eja: fix the matrix EJA trace inner-product. --- diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 18138f4..1cf6fa5 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -1737,7 +1737,7 @@ class MatrixEJA: """ # We take the norm (absolute value) because Octonions() isn't # smart enough yet to coerce its one() into the base field. - return (X*Y).trace().abs() + return (X*Y).trace().real().abs() class RealEmbeddedMatrixEJA(MatrixEJA): @staticmethod