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: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=commitdiff_plain;h=8ccf1d8af20cea17897aed21426b17872fd0fca3 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