+---------------------------------------------------- Mark Wiebe -----------+
> One way to deal with this is to use PyArray_FromAny with the
> NPY_C_CONTIGUOUS flag to ensure you have a C-aligned array. If you need to
> write to the array, you should also use the NPY_UPDATEIFCOPY flag. Here's
> how this may look (This is off the top of my head based on the
> documentation, I haven't tested it):
>

ah so i get a copy from the not contiguous array that is then contiguous (by
using NPY_C_CONTIGUOUS) - i thought PyArray_FromAny would return NULL then.

thank you.
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to