[SciPy-user] How to: Pass NumPy arrays to C & use SWIG to generate modules

Lou Pecora lou_boog2000 at yahoo.com
Mon Dec 4 11:24:08 CST 2006

Hi, Andy,

I hope all is well.

Thanks for the offer.  I will take you up on it.  I
don't need anything fancy, just passing some numpy
arrays back and forth so I can work on them in C or
C++.   My problem is, I've gotten the simple SWIG
examples to work, but when I jump to NumPy arrays, I
"hit the wall."  Things get complex fast and most of
the stuff I've found out there is more sophisticated
than I need and hard to understand.  I've spent a few
full days on this and haven't made much headway.  Let
me know how I can get your code.  


-- Lou

--- afraser <afraser at lanl.gov> wrote:

> Lou,
> I've passed NumPy arrays to C with SWIG.  My code is
> not pretty, but
> if you don't find what you need, I will send you
> what I've got.
> -- 
> Andy Fraser				ISR-2	(MS:B244)
> afraser at lanl.gov			Los Alamos National Laboratory
> 505 665 9448				Los Alamos, NM 87545
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

More information about the SciPy-user mailing list