Skip to content

Conversation

@fbourgey
Copy link

@fbourgey fbourgey commented Dec 5, 2025

Fixes endpoints normalization error in scipy/scipy#24099

res = T(1);
// Apply normalization for m=0
if (std::is_same_v<NormPolicy, assoc_legendre_norm_policy>) {
res *= sqrt(T(2 * n + 1) / T(2));
Copy link
Member

@jorenham jorenham Dec 6, 2025

Choose a reason for hiding this comment

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

Would writing this as T(n) + T(0.5) work with these generics/template thingies (sorry I'm a C++ noob)?

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.

2 participants