#include <ylmgen.h>
Collaboration diagram for Ylmgen:
Public Member Functions | |
Ylmgen (int l_max, int m_max, double epsilon=1e-30) | |
void | get_Ylm (double cth, double sth, int m, arr< double > &result, int &firstl) |
Definition at line 42 of file ylmgen.h.
|
Creates a generator which will calculate Y_lm(theta,phi=0) up to l=l_max and m=m_max. It may regard Y_lm whose absolute magnitude is smaller than epsilon as zero. |
|
For a colatitude given by cth and sth (representing cos(theta) and sin(theta)) and a multipole moment m, calculate the Y_lm(theta,phi=0) for m<=l<=lmax and return in it result[l]. On exit, firstl is the l index of the first Y_lm with an absolute magnitude larger than epsilon. If firstl>lmax, all absolute values are smaller than epsilon. result[l] is undefined for all l<firstl. |