Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmpl.h
More file actions
Latest commit
46 lines (35 loc) · 1.27 KB
/
Copy pathcmpl.h
File metadata and controls
46 lines (35 loc) · 1.27 KB
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
/* cmpl.h
*
* Copyright (C) 2009 Francesco Abbate
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndefCMPL_VECTOR_H
#defineCMPL_VECTOR_H
#include<math.h>
#include<gsl/gsl_vector_complex_double.h>
#ifdef__cplusplus
#definecomplex _Complex
#else
#include<complex.h>
#endif/* C++ */
#include"defs.h"
__BEGIN_DECLS
#defineCSQABS(z) (creal(z)*creal(z) + cimag(z)*cimag(z))
typedefdoublecomplexcmpl;
externvoidvec_complex_set (gsl_vector_complex*v, inti, cmplval);
externcmplvec_complex_get (gsl_vector_complex*v, inti);
__END_DECLS
#endif