Skip to content

Conversation

@drculhane
Copy link
Contributor

@drculhane drculhane commented Dec 22, 2025

Closes #5170.

This adds overloads to reshape.

It also fixes a bug in test_flatten_multidim. The expression a.reshape(2,2,size/4) has been changed to a.reshape(2,2,size//4). The reason is that size/4 is interpreted as a float, and floats aren't allowed in a shape. This is consistent with numpy.

Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

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

Thanks for this one!

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.

overloads to reshape function

2 participants