return self.span_of_powers().dimension()
- def matrix(self):
+ def operator_matrix(self):
"""
Return the matrix that represents left- (or right-)
multiplication by this element in the parent algebra.
fda_elt = FiniteDimensionalAlgebraElement(self.parent(), self)
return fda_elt.matrix().transpose()
- #
- # The plan is to eventually phase out "matrix()", which sounds
- # too much like "matrix_representation()", in favor of the more-
- # accurate "operator_matrix()". But we need to override matrix()
- # to keep parent class methods happy in the meantime.
- #
- operator_matrix = matrix
def minimal_polynomial(self):