blob: 5f2ce544d0cf48e51994194222673b8355cabae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*
** -*- C -*-
**
** doubleComplex.h
** Made by Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on Thu Nov 30 16:50:08 2006 jofret
** Last update Fri Mar 23 16:59:54 2007 jofret
**
** Copyright INRIA 2006
*/
#ifndef __DOUBLECOMPLEX_H__
#define __DOUBLECOMPLEX_H__
#ifdef __STDC_VERSION__
# ifndef STDC
# define STDC
# endif
# if __STDC_VERSION__ >= 199901L
# ifndef STDC99
# define STDC99
# endif
# endif
#endif
#include <stdbool.h>
#ifndef STDC99
/*
** Hand made Double Complex definition
** {
*/
struct double_complex
{
double real;
double imag;
};
typedef struct double_complex doubleComplex;
/*
** }
*/
#else
/*
** Standard C99 Complex
** {
*/
#include <complex.h>
typedef double complex doubleComplex;
/*
** }
*/
#endif
double zreals(doubleComplex);
double zimags(doubleComplex);
doubleComplex DoubleComplex(double, double);
bool zisreals(doubleComplex);
bool zisimags(doubleComplex);
#endif /* !__DOUBLECOMPLEX_H__ */
|