LevelS C++ support library
3.83
|
#include <wigner.h>
Inherited by wignergen.
Public Member Functions | |
wignergen_scalar (int lmax_, const arr< double > &thetas, double epsilon) | |
void | prepare (int m1_, int m2_) |
const arr< double > & | calc (int nth, int &firstl) |
Class for calculation of the Wigner matrix elements by l-recursion. For details, see Prezeau & Reinecke 2010, http://arxiv.org/pdf/1002.1050
wignergen_scalar::wignergen_scalar | ( | int | lmax_, |
const arr< double > & | thetas, | ||
double | epsilon | ||
) |
Constructs an object that can compute Wigner matrix elements up to a maximum l value of lmax_, at the colatitudes provided in thetas. The generator will be allowed to regard values with absolute magnitudes smaller than epsilon as zero; a typical value is 1e-30.
void wignergen_scalar::prepare | ( | int | m1_, |
int | m2_ | ||
) |
const arr< double > & wignergen_scalar::calc | ( | int | nth, |
int & | firstl | ||
) |
Computes the Wigner matrix elements for the values of m and m' set by the preceding call to prepare(), for all l up to lmax (set in the constructor), and for the nth colatitude passed to the constructor. On return, firstl contains the index of the first matrix element larger than epsilon; all values with smaller indices in the result array are undefined.