-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bug fix: get_used_symbols
#467
Conversation
Which bugs? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The optimized variants of the method by @kilohsakul had some bugs with using uninitialized memory, which caused segfaults. @koniksedy fixed these, and apparently some variants are now generally faster than our currently used implementation. We can experiment with the variants in, for example, benchmarks from Noodler and see whether there is any noticeable impact on the performance. |
The function mata/include/mata/utils/utils.hh Lines 230 to 238 in 65cb9c6
It should only be used before insert operations, not direct access. The function extends the vector size only if it is less than Perhaps the function |
More like |
|
This PR fixes bugs in the method
get_used_symbols
.