X-Git-Url: http://gitweb.michael.orlitzky.com/?p=sage.d.git;a=blobdiff_plain;f=mjo%2Feja%2Feja_algebra.py;h=e6aba200a90a0317150bde9093f6a28569d2db74;hp=4a1c6f94f589c80b9021b71ee01693765aabcaeb;hb=3f49e3bf2b85b1918c1abb0e8973a6f203dabc86;hpb=82d3e5bb067d73eb0aa557d234da0f9723b456e8 diff --git a/mjo/eja/eja_algebra.py b/mjo/eja/eja_algebra.py index 4a1c6f9..e6aba20 100644 --- a/mjo/eja/eja_algebra.py +++ b/mjo/eja/eja_algebra.py @@ -779,8 +779,10 @@ class FiniteDimensionalEJA(CombinatorialFreeModule): if elt.parent().superalgebra() == self: return elt.superalgebra_element() - if hasattr(elt, 'column'): - # Convert a vector into a column-matrix... + if hasattr(elt, 'sparse_vector'): + # Convert a vector into a column-matrix. We check for + # "sparse_vector" and not "column" because matrices also + # have a "column" method. elt = elt.column() if elt not in self.matrix_space():