GNU Radio Manual and C++ API Reference
3.10.9.1
The Free & Open Software Radio Ecosystem
gr_complex.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004,2018 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_GR_COMPLEX_H
12
#define INCLUDED_GR_COMPLEX_H
13
14
#include <complex>
15
typedef
std::complex<float>
gr_complex
;
16
typedef
std::complex<double>
gr_complexd
;
17
18
inline
bool
is_complex
(
gr_complex
x)
19
{
20
(void)x;
21
return
true
;
22
}
23
inline
bool
is_complex
(
gr_complexd
x)
24
{
25
(void)x;
26
return
true
;
27
}
28
inline
bool
is_complex
(
float
x)
29
{
30
(void)x;
31
return
false
;
32
}
33
inline
bool
is_complex
(
double
x)
34
{
35
(void)x;
36
return
false
;
37
}
38
inline
bool
is_complex
(
int
x)
39
{
40
(void)x;
41
return
false
;
42
}
43
inline
bool
is_complex
(
char
x)
44
{
45
(void)x;
46
return
false
;
47
}
48
inline
bool
is_complex
(
short
x)
49
{
50
(void)x;
51
return
false
;
52
}
53
54
#endif
/* INCLUDED_GR_COMPLEX_H */
is_complex
bool is_complex(gr_complex x)
Definition:
gr_complex.h:18
gr_complexd
std::complex< double > gr_complexd
Definition:
gr_complex.h:16
gr_complex
std::complex< float > gr_complex
Definition:
gr_complex.h:15
gnuradio-runtime
include
gnuradio
gr_complex.h
Generated by
1.9.1