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

PERF: avoid stacking in input creation and isclose comparisons #62

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

greglucas
Copy link
Member

We can replace these with inline versions ourself that speeds up our initial array creations and gets them into the Fortran ordering that f2py wants to pass by reference as well.

We can stack the arrays manually by setting the contents directly
through Numpy's indexing. Additionally, this way we can allocate
the arrow with Fortran ordering so it should be faster to pass
to the underlying codes.
Rather than using isclose() we can directly compare against the
expected values using array indexing.
@greglucas greglucas merged commit 76b2d92 into SWxTREC:main Nov 15, 2024
22 checks passed
@greglucas greglucas deleted the perf-avoid-stack branch November 15, 2024 21:15
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