Add some more to the Python bindings
This commit is contained in:
parent
724fcb6a0b
commit
d3f31a5f83
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,18 @@
|
|||
%module iir
|
||||
%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"
|
||||
%}
|
||||
|
|
Loading…
Reference in New Issue