From f0bff01c27c793952f41344c62b4ea6a7cb5bdf1 Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Thu, 20 Dec 2012 11:54:22 -0500 Subject: gruel: adding a 'pmt_from_complex' call (more clear than pmt_make_rectangular). --- gruel/src/swig/pmt_swig.i | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gruel/src/swig/pmt_swig.i') 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. -- cgit v1.2.3