libftsh
A Fast Transform for Spherical Harmonics
 All Data Structures Files Functions Variables Defines
Defines | Functions
trig_int_ops.c File Reference

Operations based on Local_Trig_Interval struct. More...

#include "libftsh.h"

Defines

#define ENTEREXIT   0

Functions

void evaluate_intlist (REAL *outfcn, REAL *incoef, Local_Trig_Interval *interval_list, int num_intervals)
void expand_intlist (REAL *outcoef, REAL *infcn, Local_Trig_Interval *interval_list, int num_intervals)
void expand_d_intlist (REAL *outcoef, REAL *infcn, Local_Trig_Interval *interval_list, int num_intervals)

Detailed Description

Operations based on Local_Trig_Interval struct.

Summary:


Function Documentation

void evaluate_intlist ( REAL outfcn,
REAL incoef,
Local_Trig_Interval interval_list,
int  num_intervals 
)

This routine does a LCT/DCT evaluation based on a list of intervals.

INPUTS:

  • outfcn -- where to put the function constructed. We ADD onto outfcn
  • incoef - the coefficients to evaluate. destroyed
  • interval_list-- An array of Local_Trig_Interval's, encoding what intervals to evaluate, how to evaluate, and where to put the result
  • num_intervals - the number of intervals

OUTPUTS: outfcn is filled in. incoef is destroyed

NOTES:

  • evaluates using the dual bell

Here is the call graph for this function:

Here is the caller graph for this function:

void expand_d_intlist ( REAL outcoef,
REAL infcn,
Local_Trig_Interval interval_list,
int  num_intervals 
)

This routine does a LCT/DCT expansion on a list of intervals.

This version expands using the DUAL bell. Otherwise it is just like expand_intlist.

See expand_intlist for a full description.

Here is the call graph for this function:

Here is the caller graph for this function:

void expand_intlist ( REAL outcoef,
REAL infcn,
Local_Trig_Interval interval_list,
int  num_intervals 
)

This routine does a LCT/DCT expansion on a list of intervals.

INPUTS:

  • outcoef -- where to put the coefficients constructed.
  • infcn - the fcn to expand
  • interval_list-- An array of Local_Trig_Interval's, encoding what intervals to expand, how to expand, and where to put the result -num_intervals - the number of intervals

OUTPUTS: outcoef is filled in. infcn is untouched

Here is the call graph for this function:

Here is the caller graph for this function: