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

add notes on using libDetDescr with numpy #1253

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Conversation

tomeichlersmith
Copy link
Member

I figured this out since I was sick of doing the bit shifting myself. It is not as performant as the bit shifting but it works pretty well and avoids copying around magic numbers.

I figured this out since I was sick of doing the bit shifting myself. It is not as performant as the bit shifting but it works pretty well and avoids copying around magic numbers.
the linked numpy doc goes into more detail on how this is more performant than a raw python `for` loop but not as performant as writing a complete ufunc ourselves.
@tomeichlersmith tomeichlersmith marked this pull request as ready for review January 30, 2024 21:39
@tomeichlersmith tomeichlersmith merged commit 9508833 into trunk Jan 31, 2024
6 of 7 checks passed
@tomeichlersmith tomeichlersmith deleted the notes-on-numpy branch January 31, 2024 15:48
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.

1 participant