gnu-octave / symbolic

A Symbolic Package for Octave using SymPy
https://octave.sourceforge.io/symbolic/
GNU General Public License v3.0
151 stars 36 forks source link

Make *cat Array-compatible #1216

Closed alexvong243f closed 2 years ago

alexvong243f commented 2 years ago

This PR makes @sym/vertcat, @sym/horzcat and @sym/transpose Array-compatible.

In @sym/horzcat, we make use of the property that

[A_1; A_2; ...; A_n).' == [A_1.' A_2.' ... A_n.']

for all A_k with compatible sizes.

alexvong243f commented 2 years ago

PR updated to fix issues raised, I think we can worry about generalizing to non-Array (e.g. TableForm) in another PR

cbm755 commented 2 years ago

I agree for TableForm. One thing at a time