diff options
author | Josh Morman <mormjb@gmail.com> | 2020-04-23 11:22:49 -0400 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:47 -0400 |
commit | 3ce5b988259a758640f01dffe380c88197c6391c (patch) | |
tree | 233277882f442b60255431bdf07a1e273249c711 /gnuradio-runtime/lib | |
parent | 3bf8aa1193a408d10e9a5cdbc2307a4eccd59e97 (diff) |
pmt: add missing implementation of pmt_from_complex
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r-- | gnuradio-runtime/lib/pmt/pmt.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt.cc b/gnuradio-runtime/lib/pmt/pmt.cc index a421b55ba9..cad2d27d4a 100644 --- a/gnuradio-runtime/lib/pmt/pmt.cc +++ b/gnuradio-runtime/lib/pmt/pmt.cc @@ -298,6 +298,11 @@ pmt_t pmt_from_complex(double re, double im) return pmt_t(new pmt_complex(std::complex<double>(re, im))); } +pmt_t pmt_from_complex(const std::complex<double> &z) +{ + return pmt_t(new pmt_complex(z)); +} + pmt_t from_complex(const std::complex<double>& z) { return pmt_t(new pmt_complex(z)); } std::complex<double> to_complex(pmt_t x) |