summaryrefslogtreecommitdiff
path: root/gruel/src/swig
diff options
context:
space:
mode:
authorTom Rondeau2012-12-20 11:54:22 -0500
committerTom Rondeau2012-12-20 11:54:22 -0500
commitb60396ab638534aff05fa5b0c8b8c0b334b4e58e (patch)
treeaf73985015148db6e5dd1074ceb30b52825bd4e9 /gruel/src/swig
parenteff53a185e1c25fc54768f480e1be1a02bba699e (diff)
downloadgnuradio-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.i2
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.