Hello everyone,
I would like to represent a symbolic function whose argument is a matrix symbol and so is its output. To make a specific example, I would like an expression like to define F, such that F(X) + X works if X is a MatrixSymbol("X", n, n).
The closest that I was able to find in the docs is FunctionMatrix, but it doesn't quite get me there. Using F = sympy.Function("F") does not work neither.
Is there a way to achieve the desired result?