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

Avoid oversized arrays in scaling tests #214

Merged

Conversation

mjacobse
Copy link
Collaborator

Arrays for testing the scaling functions with random matrices were only allocated once with the maximum dimensions of all possibly generated matrices. That makes it simple, but unfortunately also has the potential to hide possible bugs, as seen in #211 and #213. To improve the chance to detect such bugs, this reallocates the arrays to the exact dimensions for each current test case.

Arrays for testing the scaling functions with random matrices were only
allocated once with the maximum dimensions of all possibly generated
matrices. That makes it simple, but unfortunately also has the potential
to hide possible bugs, as seen in ralna#211 and ralna#213. To improve the chance
to detect such bugs, this reallocates the arrays to the exact dimensions
for each current test case.
@jfowkes
Copy link
Contributor

jfowkes commented Jun 19, 2024

Many thanks @mjacobse, this should help us with #200.

@jfowkes jfowkes self-requested a review June 19, 2024 09:25
@jfowkes jfowkes merged commit f0a82e6 into ralna:master Jun 19, 2024
14 checks passed
@mjacobse mjacobse deleted the avoid_oversized_arrays_in_scaling_tests branch June 19, 2024 10:27
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.

2 participants