nmatrix icon indicating copy to clipboard operation
nmatrix copied to clipboard

Concatenate matrices by specifying them in an Array

Open v0dro opened this issue 6 years ago • 3 comments

Something like this:

NMatrix.concat([
  [a_nm, b_nm],
  [c_nm, d_nm]
])

v0dro avatar Feb 27 '18 13:02 v0dro

So, like hstack/vstack in Numpy? I'm shocked we don't have this, but I can't find it in the code. It ought to be a pretty easy addition.

translunar avatar Feb 27 '18 15:02 translunar

We have hconcat and vconcat but its kind of counter intuitive to concatenate when you think of it that way. The easiest way I've come across is the Matlab notation which I think would reflect in nmatrix via this feature.

v0dro avatar Feb 28 '18 00:02 v0dro

We should probably also see about aliasing the concat functions to hstack and vstack.

translunar avatar Mar 01 '18 03:03 translunar