NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links

Ylmgen Class Reference

#include <ylmgen.h>

Collaboration diagram for Ylmgen:

List of all members.

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)


Detailed Description

Class for efficient calculation of Y_lm(theta,phi=0)

Definition at line 42 of file ylmgen.h.


Constructor & Destructor Documentation

Ylmgen::Ylmgen ( int  l_max,
int  m_max,
double  epsilon = 1e-30 
) [inline]

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.

Definition at line 75 of file ylmgen.h.


Member Function Documentation

void Ylmgen::get_Ylm ( double  cth,
double  sth,
int  m,
arr< double > &  result,
int &  firstl 
) [inline]

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.

Definition at line 105 of file ylmgen.h.


The documentation for this class was generated from the following file:

Generated on Fri Jun 18 16:12:30 2010 for Healpix C++
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650