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
> 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 +
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.