<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 5:27 PM, john fernando <span dir="ltr"><<a href="mailto:fernando.j@inbox.com" target="_blank">fernando.j@inbox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have the following C code which is an extension to my python code.<br>
<br>
The python and C code use<br>
#include <Numeric/arrayobject.h><br>
<br>
what is the equivalent I can use in numpy that causes the minimum code change?<br>
<br>
I did look through the old messages but didn't really find the answer-any help to a novice just starting out in numpy/python/C is much appreciated.<br></blockquote><div><br></div><div>I haven't done any porting myself, but you might want to look at numpy/oldnumeric to see how compatibility is done. That module is gone in numpy master, but is included in earlier versions. As to the include, for numpy it is `<numpy/arrayobject.h>, but a lot of things have been added/changed/deprecated. There are also two scripts in oldnumeric that help translating numeric to numpy: alter_code1.py and alter_code2.py. I haven't used either.<br>
<br></div><div>There are probably folks on the list who can give you more specific advice.<br><br></div><div>Chuck<br></div><br></div></div></div>