Calling cpp from python/SWIG

2007-03-13 Thread Frank
Hi, I have the following problem: I want to parse an array M1 from python to a cpp function fct which returns an array M2. How can I do this best? Is SWIG appropriate or is there something else? If someone could give some code example or a link to a page with examples, that would be great! Tha

Re: Calling cpp from python/SWIG

2007-03-12 Thread Gabriel Genellina
En Tue, 13 Mar 2007 03:33:43 -0300, Frank <[EMAIL PROTECTED]> escribió: > I want to parse an array M1 from python to a cpp function fct which > returns an array M2. > > How can I do this best? Is SWIG appropriate or is there something > else? If you're going to call a single function, declare it

Calling cpp from python/SWIG

2007-03-12 Thread Frank
Hi, I have the following problem: I want to parse an array M1 from python to a cpp function fct which returns an array M2. How can I do this best? Is SWIG appropriate or is there something else? If someone could give some code example or a link to a page with examples, that would be great! Tha

Calling cpp from python/SWIG

2007-03-12 Thread Frank
Hi, I have the following problem: I want to call a cpp program from python. Let's call this cpp program fct. The problem is that I will parse a large array, say M1, to fct and also receive a large array, say M2 back (each about 1000 x 1000). Normally, I would write M1 to a file, call fct via sub