Skip to content

Math::SH: Improve numerical robustness to value() and delta() functions#3307

Open
Lestropie wants to merge 1 commit into
masterfrom
sh_robustness
Open

Math::SH: Improve numerical robustness to value() and delta() functions#3307
Lestropie wants to merge 1 commit into
masterfrom
sh_robustness

Conversation

@Lestropie
Copy link
Copy Markdown
Member

Resolving CI testing issues in #2451 on Mac turned out to require use of the same std::hypot() function as was introduced in #3299 for Math::SH::get_peak() function, but in the Math::SH::value() functions (both precomputed and not). It is therefore likely that exactly the same numerical imprecisions manifest there, only that they are not iterative and not detected with existing tests, whereas in #2451 testing sampling of FOD amplitudes along streamline trajectories does manifest it.
I therefore consider it to be a "bug" not previously detected that warrants back-propagation to master.

Echoes changes made in #3299 to the get_peak() function.
@Lestropie Lestropie requested a review from jdtournier April 16, 2026 00:20
@Lestropie Lestropie self-assigned this Apr 16, 2026
@Lestropie Lestropie added the bug label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant