From: Michael Orlitzky Date: Sun, 28 Jul 2019 14:53:15 +0000 (-0400) Subject: eja: implement operator_commutes_with() in terms of operator(). X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=581b25d4af5dd7a287c9c3c11d74c6157958c3e1;p=sage.d.git eja: implement operator_commutes_with() in terms of operator(). --- diff --git a/mjo/eja/euclidean_jordan_algebra.py b/mjo/eja/euclidean_jordan_algebra.py index 5f9d5ba..30881da 100644 --- a/mjo/eja/euclidean_jordan_algebra.py +++ b/mjo/eja/euclidean_jordan_algebra.py @@ -967,8 +967,8 @@ class FiniteDimensionalEuclideanJordanAlgebra(FiniteDimensionalAlgebra): if not other in self.parent(): raise TypeError("'other' must live in the same algebra") - A = self.operator_matrix() - B = other.operator_matrix() + A = self.operator() + B = other.operator() return (A*B == B*A)