LevelS SHT library  3.50
Functions
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-2016 Max-Planck-Society

Author
Martin Reinecke

Definition in file sharp_ylmgen_c.h.

Function Documentation

◆ sharp_Ylmgen_init()

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.

◆ sharp_Ylmgen_destroy()

void sharp_Ylmgen_destroy ( sharp_Ylmgen_C *  gen)

Deallocates a generator previously initialised by Ylmgen_init().

Definition at line 130 of file sharp_ylmgen_c.c.

◆ sharp_Ylmgen_prepare()

void sharp_Ylmgen_prepare ( sharp_Ylmgen_C *  gen,
int  m 
)

Prepares the object for the calculation at m.

Definition at line 152 of file sharp_ylmgen_c.c.

◆ sharp_Ylmgen_get_norm()

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 207 of file sharp_ylmgen_c.c.

◆ sharp_Ylmgen_get_d1norm()

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 231 of file sharp_ylmgen_c.c.


Generated on Mon Dec 10 2018 10:24:20 for LevelS SHT library