Logo coherent WaveBurst  
Library Reference Guide
Logo
List of all members | Public Member Functions | List of all members
wat::Alm Class Reference

Definition at line 193 of file alm.hh.

Public Member Functions

 Alm (int lmax_=0, int mmax_=0)
 
 Alm (const Alm &alm)
 
 Alm (const ::Alm< xcomplex< double > > &alm)
 
void operator= (const ::Alm< xcomplex< double > > &alm)
 
void rotate (double psi, double theta, double phi)
 
void smoothWithGauss (double fwhm)
 
- Public Member Functions inherited from wat::Alm_Template< complex< double > >
 Alm_Template (int lmax_=0, int mmax_=0)
 Constructs an Alm_Template object with given lmax and mmax. More...
 
void Add (const T2 &num)
 Adds num to a_00. More...
 
void Add (const Alm_Template &other)
 Adds all coefficients from other to the own coefficients. More...
 
const arr< complex< double > > & Alms () const
 Returns a constant reference to the a_lm data. More...
 
complex< double > * mstart (int m)
 Returns a pointer for a given m, from which the address of a_lm can be obtained by adding l. More...
 
const complex< double > * mstart (int m) const
 Returns a pointer for a given m, from which the address of a_lm can be obtained by adding l. More...
 
complex< double > & operator() (int l, int m)
 Returns a reference to the specified coefficient. More...
 
const complex< double > & operator() (int l, int m) const
 Returns a constant reference to the specified coefficient. More...
 
void Scale (const T2 &factor)
 Multiplies all coefficients by factor. More...
 
void ScaleL (const arr< T2 > &factor)
 a(l,m) *= factor[l] for all l,m. More...
 
void ScaleM (const arr< T2 > &factor)
 a(l,m) *= factor[m] for all l,m. More...
 
void Set (int lmax_, int mmax_)
 Deletes the old coefficients and allocates storage according to lmax and mmax. More...
 
void Set (arr< complex< double > > &data, int lmax_, int mmax_)
 Deallocates the old coefficients and uses the content of data for storage. More...
 
void SetToZero ()
 Sets all coefficients to zero. More...
 
void swap (Alm_Template &other)
 Swaps the contents of two Alm_Template objects. More...
 
- Public Member Functions inherited from wat::Alm_Base
 Alm_Base (int lmax_=0, int mmax_=0)
 Constructs an Alm_Base object with given lmax and mmax. More...
 
bool conformable (const Alm_Base &other) const
 Returns true, if both objects have the same lmax and mmax, else false. More...
 
int index (int l, int m) const
 Returns the array index of the specified coefficient. More...
 
int index_l0 (int m) const
 Returns an array index for a given m, from which the index of a_lm can be obtained by adding l. More...
 
int Lmax () const
 Returns the maximum l. More...
 
int Mmax () const
 Returns the maximum m. More...
 
int Num_Alms (int l, int m)
 Returns the total number of coefficients for maximum quantum numbers l and m. More...
 
void Set (int lmax_, int mmax_)
 Changes the object's maximum quantum numbers to lmax and mmax. More...
 
void swap (Alm_Base &other)
 Swaps the contents of two Alm_Base objects. More...
 

Additional Inherited Members

- Protected Attributes inherited from wat::Alm_Base
int lmax
 
int mmax
 
int tval
 

#include <alm.hh>

Inheritance diagram for wat::Alm:
[legend]

Constructor & Destructor Documentation

◆ Alm() [1/3]

wat::Alm::Alm ( int  lmax_ = 0,
int  mmax_ = 0 
)
inline

Definition at line 196 of file alm.hh.

◆ Alm() [2/3]

wat::Alm::Alm ( const Alm alm)
inline

Definition at line 200 of file alm.hh.

◆ Alm() [3/3]

wat::Alm::Alm ( const ::Alm< xcomplex< double > > &  alm)
inline

Definition at line 203 of file alm.hh.

Member Function Documentation

◆ operator=()

void wat::Alm::operator= ( const ::Alm< xcomplex< double > > &  alm)
inline

Definition at line 244 of file alm.hh.

◆ rotate()

void wat::Alm::rotate ( double  psi,
double  theta,
double  phi 
)
inline

Definition at line 231 of file alm.hh.

◆ smoothWithGauss()

void wat::Alm::smoothWithGauss ( double  fwhm)
inline

Definition at line 207 of file alm.hh.


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