Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Tim Hochberg
Travis Oliphant wrote: > Tim Hochberg wrote: > > >>> That would be easy to do. Right now the opcodes should work correctly >>> on data that is spaced in multiples of the itemsize on the last axis. >>> Other arrays are copied (no opcode required, it's embedd

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Tim Hochberg
Ivan Vilata i Balaguer wrote: > En/na Tim Hochberg ha escrit:: > > >> Ivan Vilata i Balaguer wrote: >> >>> It seemed that discontiguous arrays worked OK in Numexpr since r1977 or >>> so, but I have come across some alignment or striding problems which can >>> be seen with the following code

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Ivan Vilata i Balaguer
En/na Tim Hochberg ha escrit:: > Tim Hochberg wrote: Ivan Vilata i Balaguer wrote: > It seemed that discontiguous arrays worked OK in Numexpr since > r1977 or > so, but I have come across some alignment or striding problems > which can > be seen with the following code::

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Travis Oliphant
Tim Hochberg wrote: >>> >>> >>> >>That would be easy to do. Right now the opcodes should work correctly >>on data that is spaced in multiples of the itemsize on the last axis. >>Other arrays are copied (no opcode required, it's embedded at the top >>of interp_body lines 64-80). The reco

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Tim Hochberg
Tim Hochberg wrote: > David M. Cooke wrote: >> On Wed, 04 Oct 2006 10:19:08 -0700 >> Tim Hochberg <[EMAIL PROTECTED]> wrote: >> >> >>> Ivan Vilata i Balaguer wrote: >>> It seemed that discontiguous arrays worked OK in Numexpr since r1977 or so, but I have come across some alig

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-05 Thread Ivan Vilata i Balaguer
En/na Tim Hochberg ha escrit:: > Ivan Vilata i Balaguer wrote: >> It seemed that discontiguous arrays worked OK in Numexpr since r1977 or >> so, but I have come across some alignment or striding problems which can >> be seen with the following code:: > I looked at this just a little bit and clearl

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Travis Oliphant
Tim Hochberg wrote: >David M. Cooke wrote: > > >>On Wed, 04 Oct 2006 10:19:08 -0700 >>Tim Hochberg <[EMAIL PROTECTED]> wrote: >> >> >> >> >>>Ivan Vilata i Balaguer wrote: >>> >>> >>> It seemed that discontiguous arrays worked OK in Numexpr since r1977 or so, but I have co

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread David M. Cooke
On Wed, 4 Oct 2006 10:23:25 -0700 Sebastian Haase <[EMAIL PROTECTED]> wrote: > On Wednesday 04 October 2006 10:13, Tim Hochberg wrote: > > Sebastian Haase wrote: > > > Quick question hopefully somewhat related to this: > > > Does numexpr fully support float32 arrays ? > > > > I don't recall. At on

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Tim Hochberg
David M. Cooke wrote: > On Wed, 04 Oct 2006 10:19:08 -0700 > Tim Hochberg <[EMAIL PROTECTED]> wrote: > > >> Ivan Vilata i Balaguer wrote: >> >>> It seemed that discontiguous arrays worked OK in Numexpr since r1977 or >>> so, but I have come across some alignment or striding problems which c

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread David M. Cooke
On Wed, 04 Oct 2006 10:19:08 -0700 Tim Hochberg <[EMAIL PROTECTED]> wrote: > Ivan Vilata i Balaguer wrote: > > It seemed that discontiguous arrays worked OK in Numexpr since r1977 or > > so, but I have come across some alignment or striding problems which can > > be seen with the following code::

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Tim Hochberg
Ivan Vilata i Balaguer wrote: > It seemed that discontiguous arrays worked OK in Numexpr since r1977 or > so, but I have come across some alignment or striding problems which can > be seen with the following code:: I looked at this just a little bit and clearly this bit from interp_body cannot wor

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Tim Hochberg
Sebastian Haase wrote: > Quick question hopefully somewhat related to this: > Does numexpr fully support float32 arrays ? > I don't recall. At one point there was a tentative plan to support float32 by casting them a block at a time to float64, operating on them and them casting them back. Tha

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Sebastian Haase
Quick question hopefully somewhat related to this: Does numexpr fully support float32 arrays ? -Sebastian On Wednesday 04 October 2006 09:32, Tim Hochberg wrote: > Ivan Vilata i Balaguer wrote: > > It seemed that discontiguous arrays worked OK in Numexpr since r1977 or > > so, but I have come acr

Re: [Numpy-discussion] Problems with Numexpr and discontiguous arrays

2006-10-04 Thread Tim Hochberg
Ivan Vilata i Balaguer wrote: > It seemed that discontiguous arrays worked OK in Numexpr since r1977 or > so, but I have come across some alignment or striding problems which can > be seen with the following code:: > > import numpy > import numexpr > > array_length = 10 > array_desc