Add some more to the Python bindings

This commit is contained in:
Laurence Withers 2014-07-08 10:42:13 +00:00
parent 724fcb6a0b
commit d3f31a5f83
2 changed files with 181 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,18 @@
%module iir %module iir
%include <complex.i> %include <complex.i>
/*
* List conversion
*
* SWIG knows how to turn std::vector<T> func() into a function that returns a
* Python list. We do need to tell it about all <T> types with %template,
* however.
*/
%include <std_vector.i>
%template(vectord) std::vector<double>;
%{ %{
#include "iir++.h" #include "iir++.h"
%} %}