Loading...
Searching...
No Matches
gr_complex.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_COMPLEX_H
#define INCLUDED_GR_COMPLEX_H
#include <complex>
typedef std::complex<float> gr_complex;
typedef std::complex<double> gr_complexd;
inline bool is_complex(gr_complex x)
{
(void)x;
return true;
}
inline bool is_complex(gr_complexd x)
{
(void)x;
return true;
}
inline bool is_complex(float x)
{
(void)x;
return false;
}
inline bool is_complex(double x)
{
(void)x;
return false;
}
inline bool is_complex(int x)
{
(void)x;
return false;
}
inline bool is_complex(char x)
{
(void)x;
return false;
}
inline bool is_complex(short x)
{
(void)x;
return false;
}
#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