[NumPy-Tickets] [NumPy] #1075: Improving contiguity detection
NumPy Trac
numpy-tickets@scipy....
Thu Mar 24 14:58:23 CDT 2011
#1075: Improving contiguity detection
------------------------+---------------------------------------------------
Reporter: cdavid | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: devel
Keywords: |
------------------------+---------------------------------------------------
Changes (by mwiebe):
* milestone: 1.5.1 => Unscheduled
Comment:
This is because the strides are being created differently from normal:
{{{
In [14]: a = np.ones(10)
In [15]: b = a[None, :]
In [16]: c = a.reshape(1,10)
In [17]: b.flags
Out[17]: C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
In [18]: c.flags
Out[18]: C_CONTIGUOUS : True
F_CONTIGUOUS : False
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
In [19]: b.strides
Out[19]: (0, 8)
In [20]: c.strides
Out[20]: (80, 8)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1075#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list