Re: [Numpy-discussion] numpy C++ swig class example

2009-06-10 Thread Bill Spotz
Jared, Typically, public data members would be handled in SWIG with, I believe, the "out" typemap. numpy.i does not support this typemap because there is no general way that I know of to tell it that, for example, _nrow and _ncol are the dimensions of data. Faced with this problem, and a d

[Numpy-discussion] numpy C++ swig class example

2009-06-09 Thread Rubin, Jared
I am using the numpy.i interface file and have gotten the cookbook/swig example to work from scipy. Are there any examples of appyling the numpy.i to a C++ header file. I would like to generate a lightweight Array2D class that just uses doubles and would have the following header file Array2D.h