CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
wigner Namespace Reference

Functions

void D00 (const Nodes &mu, int lmax, double *d00)
 

Variables

constexpr int kChunk = 32
 

Detailed Description

Wigner d-functions d^l_{mm'}(mu) for l = 0..lmax, as the lensing module needs them for its correlation functions, at kChunk nodes mu at once. The result is stored as d[l * kChunk + node]: the recurrences in l run across the nodes, which keeps the pipeline and the vector lanes busy, and the sums over l that use them run across the nodes as well. Recurrences on sqrt((2l+1)/2) d^l_{mm'} after Kostelec & Rockmore (2003), for stability. docs/superpowers/specs/2026-10-26-lensing-wigner-recursions-design.md

Function Documentation

◆ D00()

void wigner::D00 ( const Nodes &  mu,
int  lmax,
double *  d00 
)

d must hold (lmax + 1) * kChunk values

Variable Documentation

◆ kChunk

constexpr int wigner::kChunk = 32
constexpr

nodes handled together