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 infinite loop for single-precision matrices #331

Merged
merged 2 commits into from
Nov 17, 2021

Conversation

conradsnicta
Copy link
Contributor

if BaseMatType is fmat (ie. matrix with single precision elements), 1e-16 is effectively zero, leading to an infinite loop if chol() fails on the C[idx0] matrix.
The solution is to use type dependent epsilon.

if `BaseMatType` is `fmat` (ie. matrix with single precision elements), 1e-16 is effectively zero, leading to an infinite loop if `chol()` fails on the `C[idx0]` matrix.
The solution is to use type dependent epsilon.
Copy link
Member

@zoq zoq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@zoq zoq removed the s: unanswered label Nov 16, 2021
Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@conradsnicta conradsnicta merged commit d811ff9 into master Nov 17, 2021
@conradsnicta conradsnicta deleted the conradsnicta-cmaes-fix branch November 17, 2021 14:01
@zoq zoq mentioned this pull request Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants