so3
1.3.0
Fast and exact Wigner transforms
|
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <time.h>
#include <fftw3.h>
#include "so3.h"
#include "so3_test_utils.h"
Macros | |
#define | NREPEAT 2 |
#define | MIN(a, b) ((a < b) ? (a) : (b)) |
#define | MAX(a, b) ((a > b) ? (a) : (b)) |
Functions | |
double | get_max_error (complex double *expected, complex double *actual, int n) |
int | main (int argc, char **argv) |
Applies SO3 algorithms to perform inverse and forward Wigner transforms (respectively) to check that the original signal is reconstructed exactly (to numerical precision). Test is performed on a random signal with harmonic coefficients uniformly sampled from (-1,1), using a variety of options.
#define MAX | ( | a, | |
b | |||
) | ((a > b) ? (a) : (b)) |
#define MIN | ( | a, | |
b | |||
) | ((a < b) ? (a) : (b)) |
#define NREPEAT 2 |
double get_max_error | ( | complex double * | expected, |
complex double * | actual, | ||
int | n | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |