template<typename T>
class wat::Alm_Template< T >
Class for storing spherical harmonic coefficients.
Definition at line 76 of file alm.hh.
|
| Alm_Template (int lmax_=0, int mmax_=0) |
| Constructs an Alm_Template object with given lmax and mmax. More...
|
|
template<typename T2 > |
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< T > & | Alms () const |
| Returns a constant reference to the a_lm data. More...
|
|
T * | 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 T * | 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...
|
|
T & | operator() (int l, int m) |
| Returns a reference to the specified coefficient. More...
|
|
const T & | operator() (int l, int m) const |
| Returns a constant reference to the specified coefficient. More...
|
|
template<typename T2 > |
void | Scale (const T2 &factor) |
| Multiplies all coefficients by factor. More...
|
|
template<typename T2 > |
void | ScaleL (const arr< T2 > &factor) |
| a(l,m) *= factor[l] for all l,m. More...
|
|
template<typename T2 > |
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< T > &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...
|
|
| 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...
|
|