Skip to content

cdirect: check for infinite values#640

Merged
jschueller merged 1 commit into
stevengj:masterfrom
jschueller:cdirect
May 21, 2026
Merged

cdirect: check for infinite values#640
jschueller merged 1 commit into
stevengj:masterfrom
jschueller:cdirect

Conversation

@jschueller
Copy link
Copy Markdown
Collaborator

Closes #639

@jschueller jschueller merged commit ac9592b into stevengj:master May 21, 2026
3 checks passed
@jschueller jschueller deleted the cdirect branch May 21, 2026 10:55
rnew[3 + isort[i]] += w[isort[i]] * (2*k-1);
rnew[1] = fv[2*isort[i]+k];
rnew[2] = p->age++;
if (!isfinite(rnew[1])) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Probably this check could have happened before rnew was allocated.... also would have been nice to match the surrounding indenting

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok, done

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.

GNU-Octave crashes with NLOPT_GN_DIRECT_L_RAND_NOSCAL

2 participants