![]() |
libftsh
A Fast Transform for Spherical Harmonics
|
Contains functions to do pointwise operations. More...
#include "libftsh.h"Defines | |
| #define | ENTEREXIT 0 |
Functions | |
| void | pointwise_multiply (REAL *out, REAL *in_1, REAL *in_2, int numpts) |
| void | reflect_evenodd (REAL *even, REAL *odd, REAL *whole, int numpts, int dir) |
| void | remove_rootsin (REAL *out, REAL *in, REAL *node, int numpts) |
Contains functions to do pointwise operations.
Summary:
| void pointwise_multiply | ( | REAL * | out, |
| REAL * | in_1, | ||
| REAL * | in_2, | ||
| int | numpts | ||
| ) |
Pointwise multiply two vectors to form the third.
INPUTS:
OUTPUTS: out -- is written onto; out[i]=in_1[i]*in_2[i];

| void reflect_evenodd | ( | REAL * | even, |
| REAL * | odd, | ||
| REAL * | whole, | ||
| int | numpts, | ||
| int | dir | ||
| ) |
Form the even and odd parts of the input vector.
It can also reverse the process.
INPUTS:
OUTPUTS:
In forward mode even and out are written onto, with the even/odd reflections of whole:
If the number of points is odd, the center point is copied into even, and omitted from odd.
NOTES:

| void remove_rootsin | ( | REAL * | out, |
| REAL * | in, | ||
| REAL * | node, | ||
| int | numpts | ||
| ) |
Divide the vector in by sqrt(sin( node values)).
INPUTS:
OUTPUTS : out -- is written onto out[i]=in[i]/sqrt(sin(node[i]))
NOTES:

1.8.0