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

Enhance farray concatenate/repeat for MDAs #96

Closed
cjdrake opened this Issue Jun 5, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@cjdrake
Owner

cjdrake commented Jun 5, 2014

Right now, A + B will auto-flatten the array. It would be cool if 5x2 + 7x2 = 12x2, and 5x2x3 + 7x2x3 = 12x2x3.

If A.ndim == B.ndim, and A.shape[0:ndim-1] == B.shape[0:ndim-1], then it's straight-forward to construct the new array. Otherwise, just flatten.

Also, A * 3 will auto-flatten. Similar to above, 4x4 * 2 = 8x4.

@cjdrake cjdrake added the Idea label Jun 5, 2014

@cjdrake cjdrake changed the title from Enhance farray concatenate for MDAs to Enhance farray concatenate/repeat for MDAs Jun 5, 2014

@cjdrake

This comment has been minimized.

Owner

cjdrake commented Jun 5, 2014

There are problems with the implementation of irregulars MDAs (non-zero start indices). Since the result most likely won't make any sense, better to just flatten them.

cjdrake added a commit that referenced this issue Jun 16, 2014

@cjdrake cjdrake closed this Jun 16, 2014

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