ralna / spral

Sparse Parallel Robust Algorithms Library
https://ralna.github.io/spral/
Other
105 stars 27 forks source link

Avoid oversized arrays in scaling tests #214

Closed mjacobse closed 3 months ago

mjacobse commented 3 months ago

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.

jfowkes commented 3 months ago

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