diff options
author | Tom Rondeau | 2012-12-20 11:54:22 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-20 11:54:22 -0500 |
commit | b60396ab638534aff05fa5b0c8b8c0b334b4e58e (patch) | |
tree | af73985015148db6e5dd1074ceb30b52825bd4e9 /gruel/src/swig | |
parent | eff53a185e1c25fc54768f480e1be1a02bba699e (diff) | |
download | gnuradio-b60396ab638534aff05fa5b0c8b8c0b334b4e58e.tar.gz gnuradio-b60396ab638534aff05fa5b0c8b8c0b334b4e58e.tar.bz2 gnuradio-b60396ab638534aff05fa5b0c8b8c0b334b4e58e.zip |
gruel: adding a 'pmt_from_complex' call (more clear than pmt_make_rectangular).
Diffstat (limited to 'gruel/src/swig')
-rw-r--r-- | gruel/src/swig/pmt_swig.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i index 1541e6f4f..84f48b099 100644 --- a/gruel/src/swig/pmt_swig.i +++ b/gruel/src/swig/pmt_swig.i @@ -212,6 +212,8 @@ bool pmt_is_complex(pmt_t obj); //! Return a complex number constructed of the given real and imaginary parts. pmt_t pmt_make_rectangular(double re, double im); +pmt_t pmt_from_complex(const std::complex<double> &z); + /*! * If \p z is complex, real or integer, return the closest complex<double>. * Otherwise, raise the wrong_type exception. |