How to pass two dimensional array from python to function written in c++ using SWIG ? I know how to do it fo normal functions but getting problems when I try to pass 2D integer array . I am having C++ function which takes 2D integer array as input and returns integer. I want to call this from python . Any help regarding this is appeciated. Thanks.
Asked
Active
Viewed 832 times
0
-
3http://stackoverflow.com/questions/5251042/passing-python-array-to-c-function-with-swig – 7stud Nov 21 '15 at 19:53
-
Thanks :) Thats exactly what I wanted. – Nimish Sakalkale Nov 21 '15 at 19:56
-
Here's a current link to the docs for Arrays: http://www.swig.org/Doc1.3/SWIG.html#SWIG_nn26 – 7stud Nov 21 '15 at 20:00
-
Here's an interesting link for numpy [Numpy.i: a SWIG Interface File for NumPy](http://docs.scipy.org/doc/numpy-dev/reference/swig.interface-file.html) – tdelaney Nov 21 '15 at 20:14