Is there a way to mix Matrix symbols and scalar symbols in Sympy?
I want to make a scalar function that takes vectors and scalars for example:
import sympy as sy
v=sy.MatrixSymbol('v',3,1)
f=v.T*v+5
I receive an error saying: TypeError: Mix of Matrix and Scalar symbols
I know I could use a symbol for each of the dot products that I'm going to do, but that's not very elegant.