Contiguous Array
Marc de Klerk
deklerkmc at gmail.com
Wed Jul 31 03:39:33 EDT 2013
Hi guys,
I've been using np.ravel(). This morning I tried to lookup the difference
between np.ravel() and np.ascontiguousarray(). Does anybody know?
Marc
On Sunday, July 21, 2013 6:37:47 AM UTC+2, Chintak Sheth wrote:
>
> Hi Ronnie,
>
> On Jul 21, 2013 10:00 AM, "Ronnie Ghose" <ronnie... at gmail.com<javascript:>>
> wrote:
> >
> > So in skimage/colors why does it matter if the array is contiguous? Is
> this for Cython operations later?
> >
>
> Yeah it is mainly for using memory views in Cython which is initialized as
> C contiguous.
> `cdef some_type[:. ::1] var_name`
>
> In thus case ::1 is for C contiguous.
>
> Chintak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130731/e7c59f77/attachment.html>
More information about the scikit-image
mailing list