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

[Feature Request] Support numpy.ndarray.view #1042

Closed
mochiya98 opened this issue Apr 27, 2024 · 0 comments · Fixed by #1179
Closed

[Feature Request] Support numpy.ndarray.view #1042

mochiya98 opened this issue Apr 27, 2024 · 0 comments · Fixed by #1179
Labels
enhancement New feature or request

Comments

@mochiya98
Copy link

A perfect implementation is complex, but even just being able to change to another dtype of the same size would make it easier to do bitwise advanced processing in mlx.

np.array(3.14, dtype=np.float32).view(dtype=np.int32)
# array(1078523331, dtype=int32)
# -> 4048f5c3 .. raw
@awni awni added the enhancement New feature or request label Apr 27, 2024
@awni awni mentioned this issue Jun 4, 2024
@awni awni closed this as completed in #1179 Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants