LevelS C support library
3.50
|
Go to the source code of this file.
Functions | |
void | fracsincos (int m, int n, double *s, double *c) |
void | sincos_multi (size_t n, double alpha, double *s, double *c, int stride) |
void | fracsincos_multi (size_t n, int num, int den, double *s, double *c, int stride) |
void | sincos_2pibyn (size_t n, size_t nang, double *s, double *c, int stride) |
Copyright (C) 2016-2017 Max-Planck-Society
Many inspirations for this code come from Tasche and Zeuner: "Improved Roundoff Error Analysis for Precomputed Twiddle Factors", Journal of Computational Analysis and Applications, 4, 2002.
Definition in file trig_utils.c.
void fracsincos | ( | int | m, |
int | n, | ||
double * | s, | ||
double * | c | ||
) |
Computes sin/cos(2*pi*m/n). Adapted from FFTW.
Definition at line 40 of file trig_utils.c.
void sincos_multi | ( | size_t | n, |
double | alpha, | ||
double * | s, | ||
double * | c, | ||
int | stride | ||
) |
Computes sine and cosine of i*alpha for i=[0;n[. Stores the sines in s[i*stride] and the cosines in c[i*stride].
Definition at line 64 of file trig_utils.c.
void fracsincos_multi | ( | size_t | n, |
int | num, | ||
int | den, | ||
double * | s, | ||
double * | c, | ||
int | stride | ||
) |
Computes sine and cosine of i*2*pi*num/den for i=[0;n[. Stores the sines in s[i*stride] and the cosines in c[i*stride].
Definition at line 131 of file trig_utils.c.
void sincos_2pibyn | ( | size_t | n, |
size_t | nang, | ||
double * | s, | ||
double * | c, | ||
int | stride | ||
) |
Computes sine and cosine of i*2pi/n for i=[0;nang[. Stores the sines in s[i*stride] and the cosines in c[i*stride].
Definition at line 185 of file trig_utils.c.