From: mark florisson <markflorisso...@gmail.com>
Date: Thu, 26 Jul 2012 20:56:58 +0100
Local: Thurs, Jul 26 2012 3:56 pm
Subject: Re: [cython-users] Re: Best Practices for passing numpy data pointer to C ?
On 26 July 2012 20:07, Chris Barker <chris.bar...@noaa.gov> wrote:
> On Thu, Jul 26, 2012 at 11:59 AM, Sturla Molden <sturlamol...@yahoo.no> wrote:
Those will always be the same. When you slice an array that changes
>> 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.
> But does that give you the address of the zeroth element? or the
the starting element in some dimension, the data pointer is moved for the new view. > 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.
| ||||||||||||||