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

Prior value now returned as double #1291

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Prior value now returned as double #1291

merged 2 commits into from
Sep 3, 2024

Conversation

evgueni-ovtchinnikov
Copy link
Contributor

@evgueni-ovtchinnikov evgueni-ovtchinnikov commented Sep 3, 2024

Changes in this pull request

Testing performed

Related issues

fixes #1290

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added docstrings/doxygen in line with the guidance in the developer guide
  • I have implemented unit tests that cover any new or modified functionality
  • The code builds and runs on my machine
  • CHANGES.md has been updated with any functionality change

Contribution Notes

Please read and adhere to the contribution guidelines.

Please tick the following:

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in SIRF (the Work) under the terms and conditions of the Apache-2.0 License.

@evgueni-ovtchinnikov evgueni-ovtchinnikov changed the title prior value now double, Prior value now returned as double Sep 3, 2024
Copy link
Member

@KrisThielemans KrisThielemans left a comment

Choose a reason for hiding this comment

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

great. Please update CHANGES.md.

Please confirm we're already using double for the log-likelihood.

@evgueni-ovtchinnikov
Copy link
Contributor Author

CHANGES.md updated, log-likelihoods return neither float nor double.

@evgueni-ovtchinnikov evgueni-ovtchinnikov merged commit a7d4e9d into master Sep 3, 2024
1 check passed
@KrisThielemans
Copy link
Member

log-likelihoods return neither float nor double.

That makes no sense, I'm afraid. In fact, I'm relatively sure you fixed float-to-double a few months ago

@evgueni-ovtchinnikov
Copy link
Contributor Author

log-likelihoods return neither float nor double.

I was briefly referring to log-likelihoods specifically, the full answer should have been: the base class does return the objective function value as double, and the methods that compute it are not overridden by the derived log-likelihoods classes in stir_x.h.

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.

Prior::get_value() is still float
2 participants