Helpers for dealing with a_lm


Enumerations

enum  sharp_almflags

Functions

void sharp_make_triangular_alm_info (int lmax, int mmax, int stride, sharp_alm_info **alm_info)
void sharp_make_rectangular_alm_info (int lmax, int mmax, int stride, sharp_alm_info **alm_info)
void sharp_make_alm_info (int lmax, int mmax, int stride, const ptrdiff_t *mstart, sharp_alm_info **alm_info)
void sharp_make_general_alm_info (int lmax, int nm, int stride, const int *mval, const ptrdiff_t *mvstart, int flags, sharp_alm_info **alm_info)
ptrdiff_t sharp_alm_index (const sharp_alm_info *self, int l, int mi)
void sharp_destroy_alm_info (sharp_alm_info *info)

Detailed Description


Enumeration Type Documentation

alm_info flags

Definition at line 89 of file sharp_lowlevel.h.


Function Documentation

void sharp_make_triangular_alm_info ( int  lmax,
int  mmax,
int  stride,
sharp_alm_info **  alm_info 
)

Initialises an a_lm data structure according to the scheme used by Healpix_cxx.

Definition at line 35 of file sharp_almhelpers.c.

void sharp_make_rectangular_alm_info ( int  lmax,
int  mmax,
int  stride,
sharp_alm_info **  alm_info 
)

Initialises an a_lm data structure according to the scheme used by Fortran Healpix

Definition at line 54 of file sharp_almhelpers.c.

void sharp_make_alm_info ( int  lmax,
int  mmax,
int  stride,
const ptrdiff_t *  mstart,
sharp_alm_info **  alm_info 
)

Creates an a_lm data structure from the following parameters:

Parameters:
lmax maximum l quantum number (>=0)
mmax maximum m quantum number (0<= mmax <= lmax)
stride the stride between entries with identical m, and l differing by 1.
mstart the index of the (hypothetical) coefficient with the quantum numbers 0,m. Must have mmax+1 entries.
alm_info will hold a pointer to the newly created data structure

Definition at line 155 of file sharp.c.

void sharp_make_general_alm_info ( int  lmax,
int  nm,
int  stride,
const int *  mval,
const ptrdiff_t *  mvstart,
int  flags,
sharp_alm_info **  alm_info 
)

Creates an a_lm data structure which from the following parameters:

Parameters:
lmax maximum l quantum number (>=0)
nm number of different m (0<=nm<=lmax+1)
stride the stride between entries with identical m, and l differing by 1.
mval array with nm entries containing the individual m values
mvstart array with nm entries containing the (hypothetical) indices of the coefficients with the quantum numbers 0,mval[i]
flags a combination of sharp_almflags (pass 0 unless you know you need this)
alm_info will hold a pointer to the newly created data structure

Definition at line 137 of file sharp.c.

ptrdiff_t sharp_alm_index ( const sharp_alm_info *  self,
int  l,
int  mi 
)

Returns the index of the coefficient with quantum numbers l, mval[mi].

Note:
for a sharp_alm_info generated by sharp_make_alm_info() this is the index for the coefficient with the quantum numbers l, mi.

Definition at line 165 of file sharp.c.

void sharp_destroy_alm_info ( sharp_alm_info *  info  ) 

Deallocates the a_lm info object.

Definition at line 172 of file sharp.c.


Generated on Thu Oct 8 14:48:51 2015 for LevelS SHT library