|
CLASSpp Manual
Cosmology reference and developer manual
|
#include <hyperspherical.h>
Where arguments x fall in a table's grid, and the cubic Hermite weights there: at x_j, f(x_j) = h_left[j] f_i + h_right[j] f_{i+1} + g_left[j] f'i + g_right[j] f'{i+1}, i = left[j]. They depend on the x only, so a caller that interpolates many multipoles at the same arguments (the flat-space transfer functions) finds them once and evaluates every multipole from them. Separate arrays rather than one struct per point, so that the weights stream through the cache.