summaryrefslogtreecommitdiff
path: root/gruel/src/swig/pmt_swig.i
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-12-20 11:54:22 -0500
committerTom Rondeau <trondeau@vt.edu>2012-12-21 11:37:40 -0500
commitf0bff01c27c793952f41344c62b4ea6a7cb5bdf1 (patch)
tree2e9d9e47b65afbde42056daa2b2e9dd78d869973 /gruel/src/swig/pmt_swig.i
parent0973e4fc841b80988f18f25aa504a01f79d801c5 (diff)
gruel: adding a 'pmt_from_complex' call (more clear than pmt_make_rectangular).
Diffstat (limited to 'gruel/src/swig/pmt_swig.i')
-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 1541e6f4fd..84f48b099a 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.