GNU Radio Manual and C++ API Reference 3.10.5.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>
15typedef std::complex<float> gr_complex;
16typedef std::complex<double> gr_complexd;
17
18inline bool is_complex(gr_complex x)
19{
20 (void)x;
21 return true;
22}
23inline bool is_complex(gr_complexd x)
24{
25 (void)x;
26 return true;
27}
28inline bool is_complex(float x)
29{
30 (void)x;
31 return false;
32}
33inline bool is_complex(double x)
34{
35 (void)x;
36 return false;
37}
38inline bool is_complex(int x)
39{
40 (void)x;
41 return false;
42}
43inline bool is_complex(char x)
44{
45 (void)x;
46 return false;
47}
48inline bool is_complex(short x)
49{
50 (void)x;
51 return false;
52}
53
54#endif /* INCLUDED_GR_COMPLEX_H */
bool is_complex(gr_complex x)
Definition: gr_complex.h:18
std::complex< double > gr_complexd
Definition: gr_complex.h:16
std::complex< float > gr_complex
Definition: gr_complex.h:15