Open cbm755 opened 2 years ago
Related upstream question: https://github.com/sympy/sympy/issues/24008
Based on upstream comments, we should assume that .applyfunc
would return a TypeError or similar if it produces something that cannot go back into a matrix.
I guess we catch that and try again with a loop and an Array? Might easiest to leave this until we can get that error from SymPy...
this code:
Will need fixes something like #1224 for the
is_Matrix
part. But its also possible the.applyfunc
bit will need to go through @alexvong243f'smake_matrix_or_array
.I should do some experiments in SymPy: what is supposed to happen if you start with a Matrix and then
.applyfunc
your way to non-Expr entries?