LevelS C support library  3.50
Functions
trig_utils.h File Reference
#include <stdlib.h>

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)
 

Detailed Description

Copyright (C) 2016-2017 Max-Planck-Society

Author
Martin Reinecke

Definition in file trig_utils.h.

Function Documentation

◆ fracsincos()

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.

◆ sincos_multi()

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.

◆ fracsincos_multi()

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.

◆ sincos_2pibyn()

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.


Generated on Mon Dec 10 2018 10:24:19 for LevelS C support library