[sympy] Representing a matrix-valued function

2022-10-24 Thread Anton Akhmerov
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

Re: [sympy] Representing a matrix-valued function

2022-10-24 Thread Aaron Meurer
There's currently an open issue for this https://github.com/sympy/sympy/issues/5855. For now, I think the only way to do it is to manually subclass MatrixExpr. Aaron Meurer On Mon, Oct 24, 2022 at 6:52 AM Anton Akhmerov wrote: > > Hello everyone, > > I would like to represent a symbolic functio