#include <alm.h>
Public Member Functions | |
Alm (int lmax_=0, int mmax_=0) | |
void | Set (int lmax_, int mmax_) |
void | Set (arr< T > &data, int lmax_, int mmax_) |
void | SetToZero () |
template<typename T2> | |
void | Scale (const T2 &factor) |
template<typename T2> | |
void | ScaleL (const arr< T2 > &factor) |
template<typename T2> | |
void | ScaleM (const arr< T2 > &factor) |
template<typename T2> | |
void | Add (const T2 &num) |
T & | operator() (int l, int m) |
const T & | operator() (int l, int m) const |
T * | mstart (int m) |
const T * | mstart (int m) const |
const arr< T > & | Alms () const |
void | swap (Alm &other) |
void | Add (const Alm &other) |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T> | |
void | smoothWithGauss (Alm< xcomplex< T > > &alm, double fwhm) |
template<typename T> | |
void | smoothWithGauss (Alm< xcomplex< T > > &almT, Alm< xcomplex< T > > &almG, Alm< xcomplex< T > > &almC, double fwhm) |
template<typename T> | |
void | applyCosineWindow (Alm< xcomplex< T > > &alm, int lmin, int lmax) |
template<typename T> | |
void | rotate_alm (Alm< xcomplex< T > > &alm, double psi, double theta, double phi) |
template<typename T> | |
void | rotate_alm (Alm< xcomplex< T > > &almT, Alm< xcomplex< T > > &almG, Alm< xcomplex< T > > &almC, double psi, double theta, double phi) |
template<typename T> | |
void | rotate_alm (Alm< xcomplex< T > > &alm, const rotmatrix &mat) |
template<typename T> | |
void | rotate_alm (Alm< xcomplex< T > > &almT, Alm< xcomplex< T > > &almG, Alm< xcomplex< T > > &almC, const rotmatrix &mat) |
Definition at line 87 of file alm.h.
void Alm< T >::Set | ( | int | lmax_, | |
int | mmax_ | |||
) | [inline] |
void Alm< T >::SetToZero | ( | ) | [inline] |
T& Alm< T >::operator() | ( | int | l, | |
int | m | |||
) | [inline] |
const T& Alm< T >::operator() | ( | int | l, | |
int | m | |||
) | const [inline] |
T* Alm< T >::mstart | ( | int | m | ) | [inline] |
const T* Alm< T >::mstart | ( | int | m | ) | const [inline] |
void smoothWithGauss | ( | Alm< xcomplex< T > > & | alm, | |
double | fwhm | |||
) | [related] |
Applies a convolution with a Gaussian beam with an FWHM of fwhm (in radian) to alm.
Definition at line 277 of file alm_powspec_tools.cc.
void smoothWithGauss | ( | Alm< xcomplex< T > > & | almT, | |
Alm< xcomplex< T > > & | almG, | |||
Alm< xcomplex< T > > & | almC, | |||
double | fwhm | |||
) | [related] |
Applies a convolution with a Gaussian beam with an FWHM of fwhm (in radian) to almT, almG and almC.
Definition at line 294 of file alm_powspec_tools.cc.
void applyCosineWindow | ( | Alm< xcomplex< T > > & | alm, | |
int | lmin, | |||
int | lmax | |||
) | [related] |
Applies a function to alm that is 1 for all l<=lmin
, 0 for all l>=lmax
, and 0.5*
(1+cos((l-lmin)/(lmax-lmin)*pi)) in between.
Definition at line 312 of file alm_powspec_tools.cc.
void rotate_alm | ( | Alm< xcomplex< T > > & | alm, | |
double | psi, | |||
double | theta, | |||
double | phi | |||
) | [related] |
Rotates alm through the Euler angles psi, theta and phi. The Euler angle convention is right handed, rotations are active.
Definition at line 343 of file alm_powspec_tools.cc.
void rotate_alm | ( | Alm< xcomplex< T > > & | almT, | |
Alm< xcomplex< T > > & | almG, | |||
Alm< xcomplex< T > > & | almC, | |||
double | psi, | |||
double | theta, | |||
double | phi | |||
) | [related] |
Rotates almT, almG and almC through the Euler angles psi, theta and phi. The Euler angle convention is right handed, rotations are active.
Definition at line 399 of file alm_powspec_tools.cc.
void rotate_alm | ( | Alm< xcomplex< T > > & | alm, | |
const rotmatrix & | mat | |||
) | [related] |
Rotates alm through the rotation matrix mat.
Definition at line 473 of file alm_powspec_tools.cc.
void rotate_alm | ( | Alm< xcomplex< T > > & | almT, | |
Alm< xcomplex< T > > & | almG, | |||
Alm< xcomplex< T > > & | almC, | |||
const rotmatrix & | mat | |||
) | [related] |
Rotates almT, almG and almC through the rotation matrix mat.
Definition at line 484 of file alm_powspec_tools.cc.