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

Extracted arrays of fields are not C-contiguous #857

Closed
adtzlr opened this issue Sep 23, 2024 · 0 comments · Fixed by #856
Closed

Extracted arrays of fields are not C-contiguous #857

adtzlr opened this issue Sep 23, 2024 · 0 comments · Fixed by #856
Assignees
Labels
enhancement New feature or request

Comments

@adtzlr
Copy link
Owner

adtzlr commented Sep 23, 2024

C-contiguous arrays ensure better performance in repeated usage within np.einsum(). It seems to be a good idea to return C-contiguous arrays from fields by default. This may be enabled by np.einsum(..., order="C").

@adtzlr adtzlr added the enhancement New feature or request label Sep 23, 2024
@adtzlr adtzlr self-assigned this Sep 23, 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.

1 participant