so3  1.3.0
Fast and exact Wigner transforms
Macros | Functions
so3_test.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
#include <time.h>
#include <fftw3.h>
#include "so3.h"
#include "so3_test_utils.h"
Include dependency graph for so3_test.c:

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)
 

Detailed Description

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.

Usage
so3_test [L [N [L0 [seed]]]]
e.g.
so3_test 64 4 32 314
Defaults: L = 16, N = L, L0 = 0, seed = 1
Author
Martin Büttner
Jason McEwen

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ((a > b) ? (a) : (b))

◆ MIN

#define MIN (   a,
 
)    ((a < b) ? (a) : (b))

◆ NREPEAT

#define NREPEAT   2

Function Documentation

◆ get_max_error()

double get_max_error ( complex double *  expected,
complex double *  actual,
int  n 
)

◆ main()

int main ( int  argc,
char **  argv 
)