Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Mark Wiebe
On Fri, Jul 8, 2011 at 10:04 PM, Eric Firing wrote: > On 07/08/2011 01:31 PM, Mark Wiebe wrote: > > I've just made pull request 105: > > > > https://github.com/numpy/numpy/pull/105 > > > > This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, > > which behave analogously to the

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Mark Wiebe
Sorry, looks like I forgot to rebase against master as Chuck pointed out. -Mark On Fri, Jul 8, 2011 at 8:48 PM, Eric Firing wrote: > On 07/08/2011 01:31 PM, Mark Wiebe wrote: > > I've just made pull request 105: > > > > https://github.com/numpy/numpy/pull/105 > > > > This adds public API PyArra

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Charles R Harris
On Fri, Jul 8, 2011 at 9:24 PM, Charles R Harris wrote: > > > On Fri, Jul 8, 2011 at 5:31 PM, Mark Wiebe wrote: > >> I've just made pull request 105: >> >> https://github.com/numpy/numpy/pull/105 >> >> This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, >> which behave analogo

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Charles R Harris
On Fri, Jul 8, 2011 at 5:31 PM, Mark Wiebe wrote: > I've just made pull request 105: > > https://github.com/numpy/numpy/pull/105 > > This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, > which behave analogously to the corresponding unmasked functions. To expose > this with a

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Eric Firing
On 07/08/2011 01:31 PM, Mark Wiebe wrote: > I've just made pull request 105: > > https://github.com/numpy/numpy/pull/105 > > This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, > which behave analogously to the corresponding unmasked functions. To > expose this with a reasonable

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Charles R Harris
On Fri, Jul 8, 2011 at 8:22 PM, Charles R Harris wrote: > > > On Fri, Jul 8, 2011 at 7:48 PM, Eric Firing wrote: > >> On 07/08/2011 01:31 PM, Mark Wiebe wrote: >> > I've just made pull request 105: >> > >> > https://github.com/numpy/numpy/pull/105 >> > >> > This adds public API PyArray_MaskedCopy

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Charles R Harris
On Fri, Jul 8, 2011 at 7:48 PM, Eric Firing wrote: > On 07/08/2011 01:31 PM, Mark Wiebe wrote: > > I've just made pull request 105: > > > > https://github.com/numpy/numpy/pull/105 > > > > This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, > > which behave analogously to the c

Re: [Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Eric Firing
On 07/08/2011 01:31 PM, Mark Wiebe wrote: > I've just made pull request 105: > > https://github.com/numpy/numpy/pull/105 > > This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, > which behave analogously to the corresponding unmasked functions. To > expose this with a reasonable

[Numpy-discussion] code review request: masked dtype transfers

2011-07-08 Thread Mark Wiebe
I've just made pull request 105: https://github.com/numpy/numpy/pull/105 This adds public API PyArray_MaskedCopyInto and PyArray_MaskedMoveInto, which behave analogously to the corresponding unmasked functions. To expose this with a reasonable interface, I added a function np.copyto, which takes

Re: [Numpy-discussion] gist gist: 1068264

2011-07-08 Thread Nathaniel Smith
Hi Bruce, I'm replying on the list instead of on github, to make it easier for others to join in the discussion if they want. [For those joining in: this was a comment posted at https://gist.github.com/1068264 ] On Fri, Jul 8, 2011 at 10:36 AM, bsouthey wrote: > I presume missing float values cou

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Matthew Brett
Hi, On Fri, Jul 8, 2011 at 8:34 PM, Bruce Southey wrote: > On Fri, Jul 8, 2011 at 12:55 PM, Matthew Brett > wrote: >> Hi, >> >> On Fri, Jul 8, 2011 at 6:38 PM, Bruce Southey wrote: >>> On 07/08/2011 08:58 AM, Matthew Brett wrote: Hi, Just checking - but is this: On Fri

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Bruce Southey
On Fri, Jul 8, 2011 at 12:55 PM, Matthew Brett wrote: > Hi, > > On Fri, Jul 8, 2011 at 6:38 PM, Bruce Southey wrote: >> On 07/08/2011 08:58 AM, Matthew Brett wrote: >>> Hi, >>> >>> Just checking - but is this: >>> >>> On Fri, Jul 8, 2011 at 2:22 PM, Bruce Southey  wrote: >>> ... The one thin

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Matthew Brett
Hi, On Fri, Jul 8, 2011 at 6:38 PM, Bruce Southey wrote: > On 07/08/2011 08:58 AM, Matthew Brett wrote: >> Hi, >> >> Just checking - but is this: >> >> On Fri, Jul 8, 2011 at 2:22 PM, Bruce Southey  wrote: >> ... >>> The one thing that we do need now is the code that implements the small >>> set

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Bruce Southey
On 07/08/2011 08:58 AM, Matthew Brett wrote: > Hi, > > Just checking - but is this: > > On Fri, Jul 8, 2011 at 2:22 PM, Bruce Southey wrote: > ... >> The one thing that we do need now is the code that implements the small >> set of core ideas (array creation and simple numerical operations). >> Ho

Re: [Numpy-discussion] New arrays in 1.6 not always C-contiguous

2011-07-08 Thread Sturla Molden
Den 07.07.2011 14:10, skrev Jens Jørgen Mortensen: > So, this means I can't count on new arrays being C-contiguous any more. > I guess there is a good reason for this. Work with linear algebra (LAPACK) caused excessive and redundant array transpositions. Arrays would be transposed from C to Fortr

Re: [Numpy-discussion] New arrays in 1.6 not always C-contiguous

2011-07-08 Thread Sturla Molden
Den 07.07.2011 15:24, skrev Yoshi Rokuko: > thank you for pointing that out! > > so how do you change your numpy related c code now, would you like to share? > Regardless or memory layout, we can always access element array[i,j,k] like this: const int s0 = array->strides[0]; const int s1 = array

Re: [Numpy-discussion] potential bug in PyArray_MoveInto and PyArray_CopyInto?

2011-07-08 Thread James Bergstra
On Thu, Jul 7, 2011 at 4:59 PM, James Bergstra wrote: > On Thu, Jul 7, 2011 at 1:10 PM, Charles R Harris > wrote: >> >> >> On Thu, Jul 7, 2011 at 11:03 AM, James Bergstra >> wrote: >>> >>> In numpy 1.5.1,  the functions PyArray_MoveInto and PyArray_CopyInto >>> don't appear to treat strides corr

Re: [Numpy-discussion] ANN: NumPy 1.6.1 release candidate 2

2011-07-08 Thread Derek Homeier
On 07.07.2011, at 7:16PM, Robert Pyle wrote: > .../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/numeric.py:1922: > RuntimeWarning: invalid value encountered in absolute > return all(less_equal(absolute(x-y), atol + rtol * absolute(y))) > >

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Matthew Brett
Hi, Just checking - but is this: On Fri, Jul 8, 2011 at 2:22 PM, Bruce Southey wrote: ... > The one thing that we do need now is the code that implements the small > set of core ideas (array creation and simple numerical operations). > Hopefully that will provide a better grasp of the concepts a

Re: [Numpy-discussion] ANN: EPD 7.1 released

2011-07-08 Thread Ilan Schnell
I'm not sure what you mean, when you ask if the Python modules are the same. EPD 7.1 includes ETS 4.0. - Ilan On Fri, Jul 8, 2011 at 8:21 AM, Robert Love wrote: > > How does this match up with the recently announced release of ETS-4.0?  Are > the versions of the python modules the same? > > >

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Bruce Southey
On 07/08/2011 07:15 AM, Matthew Brett wrote: > Hi Travis, > > On Fri, Jul 8, 2011 at 5:03 AM, Travis Oliphant > wrote: >> Hi all, >> >> I want to first apologize for stepping into this discussion a bit late and >> for not being able to participate adequately. However, I want to offer a >> cou

Re: [Numpy-discussion] ANN: EPD 7.1 released

2011-07-08 Thread Robert Love
How does this match up with the recently announced release of ETS-4.0? Are the versions of the python modules the same? On Jul 8, 2011, at 12:37 AM, Ilan Schnell wrote: > Hello, > > I am pleased to announce that EPD (Enthought Python Distribution) > version 7.1 has been released. The most

Re: [Numpy-discussion] Missing Values Discussion

2011-07-08 Thread Matthew Brett
Hi Travis, On Fri, Jul 8, 2011 at 5:03 AM, Travis Oliphant wrote: > > Hi all, > > I want to first apologize for stepping into this discussion a bit late and > for not being able to participate adequately.   However, I want to offer a > couple of perspectives, and my opinion about what we should

Re: [Numpy-discussion] Compiling numpy on Red-Hat Import Error with lapack_lite.so

2011-07-08 Thread Jeffrey Spencer
I'll answer my own question. It was a mix of using two different fortran compilers so specified the option: python setup.py config_fc --fcompiler=gfortran build. All seems to be going well now. On 07/08/2011 05:35 PM, Jeffrey Spencer wrote: That actually makes sense because I am not sure the

Re: [Numpy-discussion] Compiling numpy on Red-Hat Import Error with lapack_lite.so

2011-07-08 Thread Jeffrey Spencer
That actually makes sense because I am not sure the gnu that it was compiled with but I think it is different. I have since compiled gcc myself, then python, and atlas libraries. Then I tried to install numpy. It go tthrough the install no worries and found the correct libraries. It stuffed when I