sage: y = vector(QQ,[4,5,6])
sage: x.inner_product(y)
32
- sage: J(x).inner_product(J(y))
+ sage: J.from_vector(x).inner_product(J.from_vector(y))
32
The inner product on `S^n` is `<X,Y> = trace(X*Y)`, where
raise ValueError("this only works with non-nilpotent elements!")
J = self.subalgebra_generated_by()
- u = J(self)
+ u = J.from_vector(self.to_vector())
# The image of the matrix of left-u^m-multiplication
# will be minimal for some natural number s...