Skip to content

Conversation

dschult
Copy link

@dschult dschult commented Nov 1, 2023

Switched back to divmod to unravel with the new shape.
That's not needed for ndim == 1 case because 32-bit overflow in 1d case is valid.
So, unravel_index works for ndim==1 with a one-liner if we avoid calling _ravel_indices so I did that.
Change back if you prefer.

Based on that, inside _ravel_indices I switched the order of checking len(indices) because only resize will call it with ndim==1.

Hopefully this will satisfy the 32-bit overflows. fingers crossed...

@perimosocordiae perimosocordiae merged commit c2cc3b8 into perimosocordiae:coo-1d Nov 1, 2023
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.

2 participants