S2kit  1.1
Toolkit for working with functions defined on the sphere
test_DLT_semi.c File Reference

Example of source code to computie forward and inverse Legendre transforms using the seminaive algorithm. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <fftw3.h>
#include "s2kit/cospml.h"
#include "s2kit/seminaive.h"
#include "s2kit/weights.h"
#include "s2kit/chebyshev_nodes.h"
#include "util/csecond.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Example of source code to computie forward and inverse Legendre transforms using the seminaive algorithm.

Prints timing and error information.

Sample call:

test_DLT_semi m bw loops
test_DLT_semi 0 32 10

where

Parameters
morder of the problem
bwbandwidth
loopsnumber of loops thru timed portion of code, intended to reduce noise due to multiprocessing and discretization errors

Definition in file test_DLT_semi.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 34 of file test_DLT_semi.c.