Sign in
Register
Home
Projects
Help
Search
:
QM-DSP
Overview
Members
Activity
Roadmap
Issues
Downloads
Repository
Code docs
qm-dsp
1.8
Main Page
Classes
Files
File List
File Members
maths
MathAliases.h
Go to the documentation of this file.
1
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
/*
3
QM DSP Library
4
5
Centre for Digital Music, Queen Mary, University of London.
6
This file 2005-2006 Christian Landone.
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License as
10
published by the Free Software Foundation; either version 2 of the
11
License, or (at your option) any later version. See the file
12
COPYING included with this distribution for more information.
13
*/
14
15
#ifndef QM_DSP_MATHALIASES_H
16
#define QM_DSP_MATHALIASES_H
17
18
#include <cmath>
19
#include <complex>
20
21
#define TWO_PI (2. * M_PI)
22
23
#define EPS 2.2204e-016
24
25
/* aliases to math.h functions */
26
#define EXP exp
27
#define COS cos
28
#define SIN sin
29
#define ABS fabs
30
#define POW powf
31
#define SQRT sqrtf
32
#define LOG10 log10f
33
#define LOG logf
34
#define FLOOR floorf
35
#define TRUNC truncf
36
37
typedef
std::complex<double>
ComplexData
;
38
39
/* aliases to complex.h functions */
41
#define EXPC cexpf
42
43
#define CEXPC cexp
44
45
#define ARGC cargf
46
47
#define ABSC cabsf
48
49
#define REAL crealf
50
51
#define IMAG cimagf
52
53
#endif
ComplexData
std::complex< double > ComplexData
Definition:
MathAliases.h:37
Generated by
1.8.11
Loading...