]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/eja/eja_element.py
eja: fix the natural representation in trivial subalgebras.
[sage.d.git] / mjo / eja / eja_element.py
index e1f75630bf5b3fc33292e4c84fa657fed715828a..aef1c5d2813660ced5d9fe66314b4f5fd7577a11 100644 (file)
@@ -825,7 +825,7 @@ class FiniteDimensionalEuclideanJordanAlgebraElement(IndexedFreeModuleElement):
 
         """
         B = self.parent().natural_basis()
-        W = B[0].matrix_space()
+        W = self.parent().natural_basis_space()
         return W.linear_combination(zip(B,self.to_vector()))