Skip to content

Set the value dirty for the floating minimizer parameters.#7671

Merged
lmoneta merged 1 commit intoroot-project:masterfrom
lmoneta:fix_nll_first_call_from_minimizer
Mar 25, 2021
Merged

Set the value dirty for the floating minimizer parameters.#7671
lmoneta merged 1 commit intoroot-project:masterfrom
lmoneta:fix_nll_first_call_from_minimizer

Conversation

@lmoneta
Copy link
Copy Markdown
Member

@lmoneta lmoneta commented Mar 24, 2021

This avoids that the first time the NLL is computed, a real calculation is performed and not a cached value is used. The cached value could be computed without subtracting the offset and this could be problematic in case the fcn is offsetting.

This fixes #7659

Note that the real changes are only at around line 200, the rest are only extra whitespaces removed.

This avoids that the first time the NLL is computed, a real calculation is performed and not a cached value is used. The cached value could be computed without subtracting the offset and this could be problematic in case the fcn is offsetting.
@lmoneta lmoneta requested a review from guitargeek March 24, 2021 15:53
@lmoneta lmoneta self-assigned this Mar 24, 2021
@lmoneta lmoneta requested a review from hageboeck as a code owner March 24, 2021 15:53
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

Copy link
Copy Markdown
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

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

Thanks for finding that problem and explaining it in a clear way! This solution looks good to me.

@lmoneta lmoneta merged commit 13ae3fb into root-project:master Mar 25, 2021
@lmoneta lmoneta deleted the fix_nll_first_call_from_minimizer branch March 25, 2021 13:05
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.

hesse fails after calling getVal on nll

3 participants