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: mark florisson <markflorisso...@gmail.com>
Date: Sun, 12 Aug 2012 11:31:02 +0100
Local: Sun, Aug 12 2012 6:31 am
Subject: Re: [cython-users] Getting a pointer to the memory behind a numpy structured dtype
On 11 August 2012 22:57, Nathaniel Smith <n...@vorpus.org> wrote:
> Hi all,
If the size of the dtype is variable it isn't really possible. If it's
> I have a problem that's probably pretty simple, but I'm not sure how
> a = np.zeros(10, dtype=["i2,i4"])
> Each entry in this array is a packed struct -- a 2-byte integer
> a[i]
> and get a void* or char* to the 6 bytes representing that entry in the
> How do I efficiently, in Cython, convert an array of arbitrary dtype +
> Cheers,
static you can probably declare a (packed) struct of char[n] and use the numpy view or astype method. 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.
| ||||||||||||||