Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concatenate matrices by specifying them in an Array #611

Open
v0dro opened this issue Feb 27, 2018 · 3 comments
Open

Concatenate matrices by specifying them in an Array #611

v0dro opened this issue Feb 27, 2018 · 3 comments

Comments

@v0dro
Copy link
Member

v0dro commented Feb 27, 2018

Something like this:

NMatrix.concat([
  [a_nm, b_nm],
  [c_nm, d_nm]
])
@translunar
Copy link
Member

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.

@v0dro
Copy link
Member Author

v0dro commented Feb 28, 2018

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.

@translunar
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants