Skip to content

Add ravel_multi_index - #6939

Merged
jsignell merged 7 commits into
dask:masterfrom
Illviljan:Illviljan-ravel_multi_index
Dec 9, 2020
Merged

jsignell merged 7 commits into
dask:masterfrom
Illviljan:Illviljan-ravel_multi_index

Conversation

@Illviljan

@Illviljan Illviljan commented Dec 5, 2020 •

Copy link
Copy Markdown
Contributor

Closes #2557 and another tick in #2911.

  • Tests added / passed
  • Passes black dask / flake8 dask

I've seen a couple of ways implementing this functionality when trying to understand what's going on:

I don't know if these are better alternatives. I mainly just went with getting the numpy version working, and I think it would start to get messy if we want to support all the options that numpy has without using np.ravel_multi_index.

Comment thread dask/array/tests/test_routines.py Resolved

@jsignell jsignell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this PR! I think the functionality will be very nice. I just have a comment about the test.

@jsignell
jsignell merged commit 11d7070 into dask:master Dec 9, 2020
@jsignell

jsignell commented Dec 9, 2020

Copy link
Copy Markdown
Member

Thanks for this PR @Illviljan!

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

Successfully merging this pull request may close these issues.

Adding ravel_multi_index and unravel_index

2 participants