aranwigner

aranwigner — Wigner D-function coefficients.

Synopsis




            AranWigner;
AranWigner* aran_wigner_new                 (gdouble beta,
                                             gint l);
void        aran_wigner_free                (AranWigner *aw);
void        aran_wigner_require             (AranWigner *aw,
                                             guint l);
gdouble*    aran_wigner_term                (AranWigner *aw,
                                             guint l,
                                             guint m1,
                                             gint m2);
void        aran_wigner_write               (AranWigner *aw,
                                             FILE *file);

Description

Wigner D-function provides operators for rotating spherical harmonics.

Details

AranWigner

typedef struct _AranWigner AranWigner;

Opaque structure. Possesses only private data.


aran_wigner_new ()

AranWigner* aran_wigner_new                 (gdouble beta,
                                             gint l);

Creates a new AranWigner for angle beta.

beta : Rotation angle (-pi < beta < pi).
l : initial degree preallocation if positive.
Returns : A Wigner D-function coefficients buffer.

aran_wigner_free ()

void        aran_wigner_free                (AranWigner *aw);

Frees all memory allocated for aw.

aw : an AranWigner structure.

aran_wigner_require ()

void        aran_wigner_require             (AranWigner *aw,
                                             guint l);

Ensures that aw is allocated to l degree inclusive and that coefficients are correctly computed.

aw : an AranWigner structure.
l : requested degree.

aran_wigner_term ()

gdouble*    aran_wigner_term                (AranWigner *aw,
                                             guint l,
                                             guint m1,
                                             gint m2);

Provides access to the corresponding term in aw.

aw : an AranWigner structure.
l : a guint.
m1 : a guint. Condition m1 <= l must hold.
m2 : a gint. Condition -l <= m2 <= l must hold.
Returns : address of the term.

aran_wigner_write ()

void        aran_wigner_write               (AranWigner *aw,
                                             FILE *file);

Writes aw to file.

aw : an AranWigner structure.
file : output file.