]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/eja/euclidean_jordan_algebra.py
eja: implement operator_commutes_with() in terms of operator().
[sage.d.git] / mjo / eja / euclidean_jordan_algebra.py
index 5f9d5ba22435bb4c0de7391b35f18bc4d00d53fd..30881da2bf696d01b51b6d159cb005f3a9459728 100644 (file)
@@ -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)