From 8ccf1d8af20cea17897aed21426b17872fd0fca3 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 3 Mar 2021 15:03:18 -0500 Subject: [PATCH] eja: fix the matrix EJA trace inner-product. --- mjo/eja/eja_algebra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.2