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

Porting numpy array's Split and Merge functions to SciJs? #14

Open
takahashi64 opened this issue Apr 29, 2017 · 2 comments
Open

Porting numpy array's Split and Merge functions to SciJs? #14

takahashi64 opened this issue Apr 29, 2017 · 2 comments

Comments

@takahashi64
Copy link

Hi

Does anything like numpy array's Split and Merge functions exist in SciJs? Otherwise, could you please give me some pointers on how to port them?

Cheers,
John

@rreusser
Copy link
Member

It seems like maybe split would be a loop that creates slices with .lo and .hi maybe? Merge might just require a bit more manual work to use ndarray-ops to assign ndarrays into slices of the destination.

I created a couple modules like ndarray-concat-rows, ndarray-concat-cols, and ndarray-tile with similar goals. They might help or might be a reasonable template for creating merge and split.

At any rate, don't hesitate ask about good ways to do things or ask other questions you might have!

@takahashi64
Copy link
Author

Thanks @rreusser - working on it now

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

No branches or pull requests

2 participants