The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Chris Barker <chris.bar...@noaa.gov>
Date: Thu, 26 Jul 2012 12:07:41 -0700
Local: Thurs, Jul 26 2012 3:07 pm
Subject: Re: [cython-users] Re: Best Practices for passing numpy data pointer to C ?
On Thu, Jul 26, 2012 at 11:59 AM, Sturla Molden <sturlamol...@yahoo.no> wrote:
But does that give you the address of the zeroth element? or the
> Den 26.07.2012 20:12, skrev Chris Barker: >> Which is why I suppose we really should have a canonical way to get
> That is what
> <dtype_t*> np.PyArray_DATA(arr)
> does.
address of the beginning of the data block? -- which I understand may not be the case, say for an array that is a slice of another array. i.e should I update that Wiki page with
<dtype_t*> np.PyArray_DATA(arr)
instead of
&arr[0]
-Chris
-- Christopher Barker, Ph.D.
Emergency Response Division
Chris.Bar...@noaa.gov
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||