sharp_ylmgen_c.h File Reference

Go to the source code of this file.

Functions

void sharp_Ylmgen_init (sharp_Ylmgen_C *gen, int l_max, int m_max, int spin)
void sharp_Ylmgen_destroy (sharp_Ylmgen_C *gen)
void sharp_Ylmgen_prepare (sharp_Ylmgen_C *gen, int m)
double * sharp_Ylmgen_get_norm (int lmax, int spin)
double * sharp_Ylmgen_get_d1norm (int lmax)


Detailed Description

Code for efficient calculation of Y_lm(phi=0,theta)

Copyright (C) 2005-2012 Max-Planck-Society

Author:
Martin Reinecke

Definition in file sharp_ylmgen_c.h.


Function Documentation

void sharp_Ylmgen_init ( sharp_Ylmgen_C *  gen,
int  l_max,
int  m_max,
int  spin 
)

Creates a generator which will calculate helper data for Y_lm calculation up to l=l_max and m=m_max.

Definition at line 44 of file sharp_ylmgen_c.c.

void sharp_Ylmgen_destroy ( sharp_Ylmgen_C *  gen  ) 

Deallocates a generator previously initialised by Ylmgen_init().

Definition at line 124 of file sharp_ylmgen_c.c.

void sharp_Ylmgen_prepare ( sharp_Ylmgen_C *  gen,
int  m 
)

Prepares the object for the calculation at m.

Definition at line 145 of file sharp_ylmgen_c.c.

double* sharp_Ylmgen_get_norm ( int  lmax,
int  spin 
)

Returns a pointer to an array with lmax+1 entries containing normalisation factors that must be applied to Y_lm values computed for spin. The array must be deallocated (using free()) by the user.

Definition at line 200 of file sharp_ylmgen_c.c.

double* sharp_Ylmgen_get_d1norm ( int  lmax  ) 

Returns a pointer to an array with lmax+1 entries containing normalisation factors that must be applied to Y_lm values computed for first derivatives. The array must be deallocated (using free()) by the user.

Definition at line 224 of file sharp_ylmgen_c.c.


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