On 9 April 2013 13:09, mark florisson wrote:
>
>
>
> On 8 April 2013 13:04, Sebastian Berg wrote:
>
>> On Mon, 2013-04-08 at 12:31 +0200, Dag Sverre Seljebotn wrote:
>> > On 04/08/2013 09:59 AM, Sebastian Berg wrote:
>> > > On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote:
>> > >> O
On 8 April 2013 13:04, Sebastian Berg wrote:
> On Mon, 2013-04-08 at 12:31 +0200, Dag Sverre Seljebotn wrote:
> > On 04/08/2013 09:59 AM, Sebastian Berg wrote:
> > > On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote:
> > >> On 04/06/2013 04:19 PM, Nathaniel Smith wrote:
> > >>> Hi all
On 9 April 2013 02:04, Dave Hirschfeld wrote:
> Dag Sverre Seljebotn writes:
>
> >
> > cdef np.ndarray[double, mode='fortran'] arr
> >
> > that relies on PEP 3118 contiguous-flags and I did no checking myself.
> > Lots of Cython code does this instead of memoryviews (I still write my
> > own cod
Dag Sverre Seljebotn writes:
>
> cdef np.ndarray[double, mode='fortran'] arr
>
> that relies on PEP 3118 contiguous-flags and I did no checking myself.
> Lots of Cython code does this instead of memoryviews (I still write my
> own code that way).
>
> The memory views OTOH does their own chec
On Mon, Apr 8, 2013 at 7:42 AM, Dag Sverre Seljebotn
wrote:
> I guess you have changed your implementation of PEP 3118 too slightly on the
> NumPy side? Is this undefined in the PEP or are you now not in strict
> adherence to it?
I just checked, and PEP 3118 just says that if a {C,F,ANY}_CONTIG
On Mon, 2013-04-08 at 12:31 +0200, Dag Sverre Seljebotn wrote:
> On 04/08/2013 09:59 AM, Sebastian Berg wrote:
> > On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote:
> >> On 04/06/2013 04:19 PM, Nathaniel Smith wrote:
> >>> Hi all,
> >>>
> >>> If you build current numpy master with
> >>
On 04/08/2013 09:59 AM, Sebastian Berg wrote:
On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote:
On 04/06/2013 04:19 PM, Nathaniel Smith wrote:
Hi all,
If you build current numpy master with
NPY_RELAXED_STRIDES_CHECKING=1 python setup.py install
then Cython code using ndarrays
On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote:
> On 04/06/2013 04:19 PM, Nathaniel Smith wrote:
> > Hi all,
> >
> > If you build current numpy master with
> >NPY_RELAXED_STRIDES_CHECKING=1 python setup.py install
> > then Cython code using ndarrays starts blowing up, e.g.:
> >
>
On 04/06/2013 04:19 PM, Nathaniel Smith wrote:
Hi all,
If you build current numpy master with
NPY_RELAXED_STRIDES_CHECKING=1 python setup.py install
then Cython code using ndarrays starts blowing up, e.g.:
# foo.pyx
def add_one(array):
cdef double[::1] a = array
a[0] += 1.
ret