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

Fix "NumbaPerformanceWarning: '@' is faster on contiguous arrays" #107

Closed
dachengx opened this issue Jan 23, 2024 · 1 comment
Closed

Fix "NumbaPerformanceWarning: '@' is faster on contiguous arrays" #107

dachengx opened this issue Jan 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dachengx
Copy link
Contributor

When running pytest -vx ./tests -k TestDeterministicSeed with 0d3fb95, I got a warning like:

tests/test_deterministic_seed.py::TestDeterministicSeed::test_FullChain_DifferentSeed
  /home/xudc/fuse/fuse/plugins/detector_physics/s2_photon_propagation.py:987: NumbaPerformanceWarning: '@' is faster on contiguous arrays, called on (Array(float64, 2, 'A', False, aligned=True), Array(float64, 2, 'A', False, aligned=True))
    result[start_idx[i]: stop_idx[i]] = (matrix[i] @ split_hdiff[i].T).T
@dachengx dachengx changed the title Fix NumbaPerformanceWarning: '@' is faster on contiguous arrays Fix "NumbaPerformanceWarning: '@' is faster on contiguous arrays" Jan 23, 2024
@dachengx dachengx added the enhancement New feature or request label Jan 23, 2024
@ramirezdiego
Copy link
Collaborator

Solved by @dachengx in #117.

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

No branches or pull requests

2 participants