Base class for calculating the storage layout of spherical harmonic coefficients.
Public Member Functions | |
| 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... | |
Protected Attributes | |
| int | lmax |
| int | mmax |
| int | tval |
#include <alm.hh>
|
inline |
|
inline |
|
inline |