Re: [Numpy-discussion] Adding an axis argument to numpy.unique

2013-08-19 Thread josef . pktd
On Sun, Aug 18, 2013 at 7:14 PM, Joe Kington joferking...@gmail.com wrote: Hi everyone, I've recently put together a pull request that adds an `axis` kwarg to `numpy.unique` so that `unique`can easily be used to find unique rows/columns/sub-arrays/etc of a larger array.

Re: [Numpy-discussion] Deprecation of financial routines

2013-08-19 Thread josef . pktd
On Mon, Aug 19, 2013 at 9:47 AM, Skipper Seabold jsseab...@gmail.com wrote: On Mon, Aug 19, 2013 at 9:38 AM, Cera, Tim t...@cerazone.net wrote: On Mon, Aug 19, 2013 at 2:37 AM, Juan Luis Cano juanlu...@gmail.com wrote: As now master is open for 1.9, following the discussion opened here

Re: [Numpy-discussion] add .H attribute?

2013-07-24 Thread josef . pktd
I think a H is feature creep and too specialized What's .H of a int a str a bool ? It's just .T and a view, so you cannot rely that conj() makes a copy if you don't work with complex. .T is just a reshape function and has **nothing** to do with matrix algebra. x = np.arange(12).reshape(3,4)

Re: [Numpy-discussion] add .H attribute?

2013-07-24 Thread josef . pktd
On Tue, Jul 23, 2013 at 4:35 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: ... There's lots of uses for A.H to be a conjugating-view, e.g., np.dot(A.H, A) can be done on-the-fly by BLAS at no extra cost, and so on. These are currently not possible with pure NumPy without a copy,

[Numpy-discussion] what is data attribute of numpy.str_ ?

2013-07-23 Thread josef . pktd
python 3.3 I have a bug because we have a check for a .data attribute, that is not supposed to be available for a string. (Pdb) dir(data) ['T', '__abs__', '__add__', '__and__', '__array__', '__array_interface__', '__array_priority__', '__array_struct__', '__array_wrap__', '__bool__',

Re: [Numpy-discussion] .flat

2013-07-23 Thread josef . pktd
On Tue, Jul 23, 2013 at 1:05 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jul 23, 2013 at 10:36 AM, Pauli Virtanen p...@iki.fi wrote: 23.07.2013 19:22, Charles R Harris kirjoitti: [clip] Grepping in my code, I find a lot of things like dfx = van.dot((ax2 - ax1).flat)

Re: [Numpy-discussion] add .H attribute?

2013-07-23 Thread josef . pktd
On Tue, Jul 23, 2013 at 5:08 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 07/23/2013 07:53 PM, Alan G Isaac wrote: I'm trying to understand the state of this discussion. I believe that propoents of adding a .H attribute have primarily emphasized - readability (and general

Re: [Numpy-discussion] Bringing order to higher dimensional operations

2013-07-19 Thread josef . pktd
On Fri, Jul 19, 2013 at 12:10 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Fri, 2013-07-19 at 16:14 +0100, Nathaniel Smith wrote: On Thu, Jul 18, 2013 at 2:23 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Thu, 2013-07-18 at 13:52 +0100, Nathaniel Smith wrote: Hi all,

Re: [Numpy-discussion] What should be the result in some statistics corner cases?

2013-07-15 Thread josef . pktd
On Mon, Jul 15, 2013 at 2:55 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Jul 15, 2013 at 6:29 PM, Charles R Harris charlesr.har...@gmail.com wrote: Let me try to summarize. To begin with, the environment of the nan functions is rather special. 1) if the array is of not of inexact type,

Re: [Numpy-discussion] What should be the result in some statistics corner cases?

2013-07-15 Thread josef . pktd
On Mon, Jul 15, 2013 at 4:24 PM, josef.p...@gmail.com wrote: On Mon, Jul 15, 2013 at 2:55 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Jul 15, 2013 at 6:29 PM, Charles R Harris charlesr.har...@gmail.com wrote: Let me try to summarize. To begin with, the environment of the nan functions

Re: [Numpy-discussion] What should be the result in some statistics corner cases?

2013-07-15 Thread josef . pktd
On Mon, Jul 15, 2013 at 5:34 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 15, 2013 at 2:44 PM, josef.p...@gmail.com wrote: On Mon, Jul 15, 2013 at 4:24 PM, josef.p...@gmail.com wrote: On Mon, Jul 15, 2013 at 2:55 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Jul

Re: [Numpy-discussion] Allow == and != to raise errors

2013-07-13 Thread josef . pktd
On Sat, Jul 13, 2013 at 9:14 AM, Nathaniel Smith n...@pobox.com wrote: On Fri, Jul 12, 2013 at 2:13 PM, Benjamin Root ben.r...@ou.edu wrote: I can see where you are getting at, but I would have to disagree. First of all, when a comparison between two mis-shaped arrays occur, you get back a

Re: [Numpy-discussion] Allow == and != to raise errors

2013-07-12 Thread josef . pktd
On Fri, Jul 12, 2013 at 3:35 PM, Frédéric Bastien no...@nouiz.org wrote: I also don't like that idea, but I'm not able to come to a good reasoning like Benjamin. I don't see advantage to this change and the reason isn't good enough to justify breaking the interface I think. But I don't

Re: [Numpy-discussion] Covariance matrix from polyfit

2013-07-04 Thread josef . pktd
On Thu, Jul 4, 2013 at 8:01 PM, David Schaich dascha...@gmail.com wrote: Hi all, I recently adopted python, and am in the process of replacing my old analysis tools. For simple (e.g., linear) interpolations and extrapolations, in the past I used gnuplot. Today I set up the equivalent with

Re: [Numpy-discussion] numpy.filled, again

2013-06-29 Thread josef . pktd
On Sat, Jun 29, 2013 at 6:39 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Jun 29, 2013 at 10:37 AM, Nathaniel Smith n...@pobox.com wrote: So this petered off...any objections to np.full? full and filledwith and filled_with all seem OK to me. same here, filled_with_like might

Re: [Numpy-discussion] numpy.filled, again

2013-06-29 Thread josef . pktd
On Sat, Jun 29, 2013 at 12:04 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Jun 29, 2013 at 4:37 AM, Nathaniel Smith n...@pobox.com wrote: So this petered off...any objections to np.full? How about `np.inited` ? `full` doesn't sound quite right to me. Although I expect

Re: [Numpy-discussion] numpy.filled, again

2013-06-29 Thread josef . pktd
On Sat, Jun 29, 2013 at 3:00 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Sat, Jun 29, 2013 at 6:43 PM, josef.p...@gmail.com wrote: On Sat, Jun 29, 2013 at 12:04 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Jun 29, 2013 at 4:37 AM, Nathaniel Smith n...@pobox.com

Re: [Numpy-discussion] numpy.filled, again

2013-06-29 Thread josef . pktd
On Sat, Jun 29, 2013 at 9:23 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Jun 29, 2013 at 7:15 PM, josef.p...@gmail.com wrote: On Sat, Jun 29, 2013 at 3:00 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Sat, Jun 29, 2013 at 6:43 PM, josef.p...@gmail.com wrote:

Re: [Numpy-discussion] numpy.filled, again

2013-06-28 Thread josef . pktd
On Wed, Jun 12, 2013 at 8:10 AM, Nathaniel Smith n...@pobox.com wrote: Hi all, It looks like we've gotten a bit confused and need to untangle something. There's a PR to add new functions 'np.filled' and 'np.filled_like': https://github.com/numpy/numpy/pull/2875 And there was a discussion

[Numpy-discussion] slicing with boolean in numpy master

2013-06-26 Thread josef . pktd
Is there a change in the behavior of boolean slicing in current master? If not I have to find another candidate in numpy master. (py27d) E:\Josef\testing\tox\py27d\Scriptspython Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or

Re: [Numpy-discussion] slicing with boolean in numpy master

2013-06-26 Thread josef . pktd
On Wed, Jun 26, 2013 at 12:01 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Wed, 2013-06-26 at 11:30 -0400, josef.p...@gmail.com wrote: Is there a change in the behavior of boolean slicing in current master? Yes, but I think this is probably a bug in statsmodel. I would expect you

Re: [Numpy-discussion] slicing with boolean in numpy master

2013-06-26 Thread josef . pktd
On Wed, Jun 26, 2013 at 1:16 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Wed, 2013-06-26 at 12:52 -0400, josef.p...@gmail.com wrote: On Wed, Jun 26, 2013 at 12:01 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Wed, 2013-06-26 at 11:30 -0400, josef.p...@gmail.com wrote:

Re: [Numpy-discussion] numpy.filled, again

2013-06-13 Thread josef . pktd
On Thu, Jun 13, 2013 at 4:47 PM, Eric Firing efir...@hawaii.edu wrote: On 2013/06/13 10:36 AM, Benjamin Root wrote: On Thu, Jun 13, 2013 at 9:36 AM, Aldcroft, Thomas aldcr...@head.cfa.harvard.edu mailto:aldcr...@head.cfa.harvard.edu wrote: On Wed, Jun 12, 2013 at 2:55 PM, Eric Firing

Re: [Numpy-discussion] numpy.filled, again

2013-06-12 Thread josef . pktd
On Wed, Jun 12, 2013 at 8:47 AM, Daniele Nicolodi dani...@grinta.net wrote: On 12/06/2013 14:29, Robert Kern wrote: On Wed, Jun 12, 2013 at 1:26 PM, Daniele Nicolodi dani...@grinta.net wrote: There where the additional proposal (mostly neglected on the original thread) to add the 'fill'

Re: [Numpy-discussion] numpy.filled, again

2013-06-12 Thread josef . pktd
On Wed, Jun 12, 2013 at 10:45 AM, Warren Weckesser warren.weckes...@gmail.com wrote: On Wed, Jun 12, 2013 at 10:18 AM, Nathaniel Smith n...@pobox.com wrote: On Wed, Jun 12, 2013 at 1:28 PM, Matthew Brett matthew.br...@gmail.com wrote: On Wed, Jun 12, 2013 at 1:10 PM, Nathaniel Smith

Re: [Numpy-discussion] np.asarray atleast_float64 ?

2013-06-12 Thread josef . pktd
On Sat, Jun 8, 2013 at 7:31 PM, josef.p...@gmail.com wrote: On Sat, Jun 8, 2013 at 7:05 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sat, 2013-06-08 at 08:52 -0400, josef.p...@gmail.com wrote: Is there anything to require a numpy array with a minimum numeric dtype? To avoid lower

Re: [Numpy-discussion] weird problem with subtracting ndarrays

2013-06-12 Thread josef . pktd
On Wed, Jun 12, 2013 at 3:25 PM, Moroney, Catherine M (398D) catherine.m.moro...@jpl.nasa.gov wrote: Hello, I've got two arrays of the same shape that I read in from a file, and I'm trying to difference them. Very simple stuff, but I'm getting weird answers. Here is the code: counts1 =

Re: [Numpy-discussion] Weird problem with subtracting ndarrays

2013-06-12 Thread josef . pktd
On Wed, Jun 12, 2013 at 3:38 PM, Moroney, Catherine M (398D) catherine.m.moro...@jpl.nasa.gov wrote: Thanks for the tip. I thought it must be something simple like that. When I convert the arrays to numpy.int32 things behave normally. Another question though: a numpy.all() on the

Re: [Numpy-discussion] quickselect

2013-06-09 Thread josef . pktd
On Wed, May 29, 2013 at 3:19 PM, josef.p...@gmail.com wrote: On Wed, May 29, 2013 at 12:25 PM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 05/29/2013 06:12 AM, josef.p...@gmail.com wrote: On Tue, May 28, 2013 at 6:31 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All,

Re: [Numpy-discussion] adding booleans

2013-06-08 Thread josef . pktd
Question about namespace why is there bool and bool_ ? np.bool(True) + np.bool(True) 2 np.bool_(True) + np.bool_(True) True type(np.bool(True)) type 'bool' type(np.bool_(True)) type 'numpy.bool_' I didn't pay attention to the trailing underline in Pauli's original example Josef

Re: [Numpy-discussion] adding booleans

2013-06-08 Thread josef . pktd
On Sat, Jun 8, 2013 at 5:18 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sat, 2013-06-08 at 00:48 +0100, Nathaniel Smith wrote: On 7 Jun 2013 21:58, josef.p...@gmail.com wrote: Interesting observation, (while lurking on a pull request) np.add.reduce(np.arange(5)3) 3

[Numpy-discussion] np.asarray atleast_float64 ?

2013-06-08 Thread josef . pktd
Is there anything to require a numpy array with a minimum numeric dtype? To avoid lower precision calculations and be upwards compatible, something like x = np.asarray(x, =np.float64) that converts ints, bool and lower precision to float64 but leaves higher precision float and complex double

Re: [Numpy-discussion] adding booleans

2013-06-08 Thread josef . pktd
On Sat, Jun 8, 2013 at 7:54 AM, Robert Kern robert.k...@gmail.com wrote: On Sat, Jun 8, 2013 at 12:40 PM, josef.p...@gmail.com wrote: Question about namespace why is there bool and bool_ ? np.bool(True) + np.bool(True) 2 np.bool_(True) + np.bool_(True) True type(np.bool(True)) type

Re: [Numpy-discussion] np.asarray atleast_float64 ?

2013-06-08 Thread josef . pktd
On Sat, Jun 8, 2013 at 7:05 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sat, 2013-06-08 at 08:52 -0400, josef.p...@gmail.com wrote: Is there anything to require a numpy array with a minimum numeric dtype? To avoid lower precision calculations and be upwards compatible, something

[Numpy-discussion] adding booleans

2013-06-07 Thread josef . pktd
Interesting observation, (while lurking on a pull request) np.add.reduce(np.arange(5)3) 3 np.add((np.arange(5)3), (np.arange(5)3)) array([ True, True, True, False, False], dtype=bool) I often use summing of an array of boolean but didn't know the second behavior Josef

Re: [Numpy-discussion] adding booleans

2013-06-07 Thread josef . pktd
On Fri, Jun 7, 2013 at 7:48 PM, Nathaniel Smith n...@pobox.com wrote: On 7 Jun 2013 21:58, josef.p...@gmail.com wrote: Interesting observation, (while lurking on a pull request) np.add.reduce(np.arange(5)3) 3 np.add((np.arange(5)3), (np.arange(5)3)) array([ True, True, True, False,

Re: [Numpy-discussion] adding booleans

2013-06-07 Thread josef . pktd
On Fri, Jun 7, 2013 at 8:08 PM, josef.p...@gmail.com wrote: On Fri, Jun 7, 2013 at 7:48 PM, Nathaniel Smith n...@pobox.com wrote: On 7 Jun 2013 21:58, josef.p...@gmail.com wrote: Interesting observation, (while lurking on a pull request) np.add.reduce(np.arange(5)3) 3

Re: [Numpy-discussion] Effect of deprecating non-integers for integer function arguments

2013-05-31 Thread josef . pktd
On Fri, May 31, 2013 at 2:08 PM, Sebastian Berg sebast...@sipsolutions.net wrote: Hi, the current numpy master has deprecated non-integers for the use of indexing (not-fancy yet). However I think this should be moved further down in the numpy machinery which means that the conversion utils

Re: [Numpy-discussion] quickselect

2013-05-29 Thread josef . pktd
On Wed, May 29, 2013 at 12:25 PM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 05/29/2013 06:12 AM, josef.p...@gmail.com wrote: On Tue, May 28, 2013 at 6:31 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, There is a PR adding quickselect to numpy as a function

Re: [Numpy-discussion] quickselect

2013-05-28 Thread josef . pktd
On Tue, May 28, 2013 at 6:31 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, There is a PR adding quickselect to numpy as a function `partition`. Comments on name and exposure in the numpy API are welcome. I think the name is fine. It's possible to get used to it. One possible

Re: [Numpy-discussion] multivariate_normal issue with 'size' argument

2013-05-24 Thread josef . pktd
On Fri, May 24, 2013 at 9:47 AM, Warren Weckesser warren.weckes...@gmail.com wrote: On 5/24/13, Peter Cock p.j.a.c...@googlemail.com wrote: On Fri, May 24, 2013 at 2:15 PM, Robert Kern robert.k...@gmail.com wrote: On Fri, May 24, 2013 at 9:12 AM, Peter Cock p.j.a.c...@googlemail.com wrote: On

Re: [Numpy-discussion] Newbie trying to install NumPy

2013-05-18 Thread josef . pktd
On Sat, May 18, 2013 at 1:11 AM, Joe Piccoli joe13...@comcast.net wrote: Hello, ** ** I've been trying to install NumPy to run with Eclipse on Windows Vista. After installing (I thought) NumPy I was seeing: ** ** ImportError: Error importing numpy: you should not try to import

Re: [Numpy-discussion] Really cruel draft of vbench setup for NumPy (.add.reduce benchmarks since 2011)

2013-05-06 Thread josef . pktd
On Mon, May 6, 2013 at 10:32 AM, Yaroslav Halchenko li...@onerussian.com wrote: On Wed, 01 May 2013, Sebastian Berg wrote: btw -- is there something like panda's vbench for numpy? i.e. where it would be possible to track/visualize such performance improvements/hits? Sorry if it seemed

Re: [Numpy-discussion] GSoC : Performance parity between numpy arrays and Python scalars

2013-05-02 Thread josef . pktd
On Thu, May 2, 2013 at 6:30 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Fri, May 3, 2013 at 12:29 AM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Thu, May 2, 2013 at 9:54 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 2, 2013 at 11:49 AM, Ralf Gommers

Re: [Numpy-discussion] could anyone check on a 32bit system?

2013-05-01 Thread josef . pktd
On Wed, May 1, 2013 at 1:24 PM, Matthew Brett matthew.br...@gmail.com wrote: HI, On Wed, May 1, 2013 at 9:09 AM, Yaroslav Halchenko li...@onerussian.com wrote: On Wed, 01 May 2013, Nathaniel Smith wrote: not sure there is anything to fix here. Third-party code relying on a certain

[Numpy-discussion] int to binary

2013-04-29 Thread josef . pktd
Is there a available function to convert an int to binary representation as sequence of 0 and 1? binary_repr produces strings and is not vectorized np.binary_repr(5) '101' np.binary_repr(5, width=4) '0101' np.binary_repr(np.arange(5), width=4) Traceback (most recent call last): File

Re: [Numpy-discussion] int to binary

2013-04-29 Thread josef . pktd
On Mon, Apr 29, 2013 at 11:25 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-04-29 at 11:15 -0400, josef.p...@gmail.com wrote: Is there a available function to convert an int to binary representation as sequence of 0 and 1? Maybe unpackbits/packbits? It only supports the

Re: [Numpy-discussion] int to binary

2013-04-29 Thread josef . pktd
On Mon, Apr 29, 2013 at 12:24 PM, Warren Weckesser warren.weckes...@gmail.com wrote: On 4/29/13, josef.p...@gmail.com josef.p...@gmail.com wrote: Is there a available function to convert an int to binary representation as sequence of 0 and 1? binary_repr produces strings and is not

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-26 Thread josef . pktd
the new documentation http://stackoverflow.com/questions/1589706/iterating-over-arbitrary-dimension-of-numpy-array second answer, 1st answer is what I usually use search term [numpy] iterate over axis Josef On Fri, Apr 26, 2013 at 9:37 AM, Jason Grout jason-s...@creativetrax.com wrote: On

Re: [Numpy-discussion] Proposal of new function: iteraxis()

2013-04-25 Thread josef . pktd
On Thu, Apr 25, 2013 at 3:40 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Apr 25, 2013 at 8:21 PM, Andrew Giessel andrew_gies...@hms.harvard.edu wrote: I respect this opinion. However (and maybe this is legacy), while reading through the numeric.py source file, I was surprised at how

Re: [Numpy-discussion] Vectorized percentile function in Numpy (PR #2970)

2013-04-24 Thread josef . pktd
On Wed, Apr 24, 2013 at 4:11 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Tue, 2013-04-23 at 23:33 -0400, josef.p...@gmail.com wrote: On Tue, Apr 23, 2013 at 6:16 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Tue, 2013-04-23 at 12:13 -0500, Jonathan Helmus wrote:

Re: [Numpy-discussion] Vectorized percentile function in Numpy (PR #2970)

2013-04-23 Thread josef . pktd
On Tue, Apr 23, 2013 at 6:16 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Tue, 2013-04-23 at 12:13 -0500, Jonathan Helmus wrote: Back in December it was pointed out on the scipy-user list[1] that numpy has a percentile function which has similar functionality to scipy's

Re: [Numpy-discussion] Numpy discussion - was: Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-08 Thread josef . pktd
On Mon, Apr 8, 2013 at 5:38 AM, Pauli Virtanen p...@iki.fi wrote: Paul Ivanov pivanov314 at gmail.com writes: [clip] In a related note - it should be made clear who the core committers are, at this point. The github organization lists the following eight: charris cournape njsmith pv

Re: [Numpy-discussion] Sources more confusing in Python

2013-04-07 Thread josef . pktd
On Sun, Apr 7, 2013 at 5:34 PM, Steve Waterbury water...@pangalactic.us wrote: On 04/07/2013 05:30 PM, Nathaniel Smith wrote: On Sun, Apr 7, 2013 at 10:25 PM, Steve Waterbury water...@pangalactic.us wrote: On 04/07/2013 05:02 PM, Chris Barker - NOAA Federal wrote: On Sun, Apr 7, 2013 at 8:06

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-05 Thread josef . pktd
On Fri, Apr 5, 2013 at 9:50 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Fri, Apr 5, 2013 at 4:27 PM, josef.p...@gmail.com wrote: On Fri, Apr 5, 2013 at 6:09 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Fri, Apr 5, 2013 at 12:53 PM, Ralf Gommers

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-05 Thread josef . pktd
On Fri, Apr 5, 2013 at 10:47 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Fri, Apr 5, 2013 at 7:39 PM, josef.p...@gmail.com wrote: On Fri, Apr 5, 2013 at 9:50 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Fri, Apr 5, 2013 at 4:27 PM, josef.p...@gmail.com wrote: On

Re: [Numpy-discussion] Moving linalg c code

2013-04-04 Thread josef . pktd
On Thu, Apr 4, 2013 at 3:49 AM, Dave Hirschfeld dave.hirschf...@gmail.com wrote: Charles R Harris charlesr.harris at gmail.com writes: Hi All,There is a PR that adds some blas and lapack functions to numpy. I'm thinking that if that PR is merged it would be good to move all of the blas and

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-04 Thread josef . pktd
On Thu, Apr 4, 2013 at 3:40 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 4, 2013 at 11:45 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 4, 2013 at 9:21 AM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Wed, Apr 3, 2013 at 6:13 PM,

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-04 Thread josef . pktd
On Thu, Apr 4, 2013 at 4:02 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 4, 2013 at 12:54 PM, josef.p...@gmail.com wrote: On Thu, Apr 4, 2013 at 3:40 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Apr 4, 2013 at 11:45 AM, Matthew Brett

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-04 Thread josef . pktd
On Thu, Apr 4, 2013 at 5:54 PM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Thu, Apr 4, 2013 at 11:26 AM, josef.p...@gmail.com wrote: Before you answer that -- does anyone see a use case for the 'A' and 'K' flags that can't be reasonably easily accomplished with .view() or

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-04 Thread josef . pktd
Catching up with numpy 1.6 'No' means: I don't think it makes sense given the current behavior of numpy with respect to functions that are designed to return views (and copy memory only if there is no way to make a view) One objective of functions that create views is *not* to change the

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-03 Thread josef . pktd
On Tue, Apr 2, 2013 at 9:09 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Tue, Apr 2, 2013 at 7:09 PM, josef.p...@gmail.com wrote: On Tue, Apr 2, 2013 at 5:52 PM, Nathaniel Smith n...@pobox.com wrote: On Tue, Apr 2, 2013 at 10:21 PM, Matthew Brett matthew.br...@gmail.com wrote:

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-03 Thread josef . pktd
On Wed, Apr 3, 2013 at 9:13 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Wed, Apr 3, 2013 at 11:44 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Wed, Apr 3, 2013 at 8:52 AM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Wed, Apr 3, 2013 at 6:24 AM,

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-02 Thread josef . pktd
On Tue, Apr 2, 2013 at 2:04 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Tue, Apr 2, 2013 at 12:29 PM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Mon, Apr 1, 2013 at 10:15 PM, Matthew Brett matthew.br...@gmail.com wrote: Thank you for the compliment, it's more

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-02 Thread josef . pktd
On Tue, Apr 2, 2013 at 5:52 PM, Nathaniel Smith n...@pobox.com wrote: On Tue, Apr 2, 2013 at 10:21 PM, Matthew Brett matthew.br...@gmail.com wrote: This is like observing that if I say go North then it's ambiguous about whether I want you to drive or walk, and concluding that we need new

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-02 Thread josef . pktd
On Tue, Apr 2, 2013 at 7:09 PM, josef.p...@gmail.com wrote: On Tue, Apr 2, 2013 at 5:52 PM, Nathaniel Smith n...@pobox.com wrote: On Tue, Apr 2, 2013 at 10:21 PM, Matthew Brett matthew.br...@gmail.com wrote: This is like observing that if I say go North then it's ambiguous about whether I

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-04-01 Thread josef . pktd
On Mon, Apr 1, 2013 at 3:10 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Apr 1, 2013 at 10:23 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sun, 2013-03-31 at 14:04 -0700, Matthew Brett wrote: Hi, On Sun, Mar 31, 2013 at 1:43 PM, josef.p...@gmail.com wrote: On

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-31 Thread josef . pktd
On Sun, Mar 31, 2013 at 3:54 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 10:38 PM, josef.p...@gmail.com wrote: On Sun, Mar 31, 2013 at 12:50 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 9:37 PM, josef.p...@gmail.com wrote:

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Fri, Mar 29, 2013 at 10:08 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, We were teaching today, and found ourselves getting very confused about ravel and shape in numpy. Summary -- There are two separate ideas needed to understand ordering in ravel and reshape:

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 7:14 AM, josef.p...@gmail.com wrote: On Fri, Mar 29, 2013 at 10:08 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, We were teaching today, and found ourselves getting very confused about ravel and shape in numpy. Summary -- There are two

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 3:51 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 4:14 AM, josef.p...@gmail.com wrote: On Fri, Mar 29, 2013 at 10:08 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, We were teaching today, and found ourselves getting very

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 4:57 PM, josef.p...@gmail.com wrote: On Sat, Mar 30, 2013 at 3:51 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 4:14 AM, josef.p...@gmail.com wrote: On Fri, Mar 29, 2013 at 10:08 PM, Matthew Brett matthew.br...@gmail.com wrote:

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 7:31 PM, Bradley M. Froehle brad.froe...@gmail.com wrote: On Sat, Mar 30, 2013 at 3:21 PM, Matthew Brett matthew.br...@gmail.com wrote: On Sat, Mar 30, 2013 at 2:20 PM, josef.p...@gmail.com wrote: On Sat, Mar 30, 2013 at 4:57 PM, josef.p...@gmail.com wrote: On

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 8:29 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 7:50 PM, josef.p...@gmail.com wrote: On Sat, Mar 30, 2013 at 7:31 PM, Bradley M. Froehle brad.froe...@gmail.com wrote: On Sat, Mar 30, 2013 at 3:21 PM, Matthew Brett

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sat, Mar 30, 2013 at 11:43 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 7:02 PM, josef.p...@gmail.com wrote: On Sat, Mar 30, 2013 at 8:29 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 7:50 PM, josef.p...@gmail.com wrote:

Re: [Numpy-discussion] Raveling, reshape order keyword unnecessarily confuses index and memory ordering

2013-03-30 Thread josef . pktd
On Sun, Mar 31, 2013 at 12:04 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 7:02 PM, josef.p...@gmail.com wrote: On Sat, Mar 30, 2013 at 8:29 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Mar 30, 2013 at 7:50 PM, josef.p...@gmail.com wrote:

Re: [Numpy-discussion] Numpy correlate

2013-03-18 Thread josef . pktd
On Mon, Mar 18, 2013 at 1:10 PM, Skipper Seabold jsseab...@gmail.com wrote: On Mon, Mar 18, 2013 at 1:00 PM, Pierre Haessig pierre.haes...@crans.org wrote: Hi Sudheer, Le 14/03/2013 10:18, Sudheer Joseph a écrit : Dear Numpy/Scipy experts,

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread josef . pktd
On Tue, Mar 12, 2013 at 5:27 PM, Nathaniel Smith n...@pobox.com wrote: On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern robert.k...@gmail.com wrote: On Sun, Mar 10, 2013 at 6:12 PM, Siu Kwan Lam s...@continuum.io wrote: My

Re: [Numpy-discussion] Adopt Mersenne Twister 64bit?

2013-03-12 Thread josef . pktd
On Tue, Mar 12, 2013 at 7:10 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Mar 12, 2013 at 10:38 PM, Neal Becker ndbeck...@gmail.com wrote: Nathaniel Smith wrote: On Tue, Mar 12, 2013 at 9:25 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Mar 11, 2013 at 9:46 AM, Robert Kern

Re: [Numpy-discussion] polyfit in NumPy v1.7

2013-02-27 Thread josef . pktd
Please post inline so we have the context. On Wed, Feb 27, 2013 at 9:40 AM, David Pine djp...@gmail.com wrote: Chuck, Thanks for the quick reply. 1. I see your point about zero weights but the code in its current form doesn't take into account zero weights in counting the degrees of

Re: [Numpy-discussion] polyfit in NumPy v1.7

2013-02-27 Thread josef . pktd
On Wed, Feb 27, 2013 at 3:01 PM, David Pine djp...@gmail.com wrote: Pauli, Josef, Chuck, I read over the discussion on curve_fit. I believe I now understand what people are trying to do when they write about scaling the weighting and/or covariance matrix. And I agree that what polyfit does

Re: [Numpy-discussion] drawing the line (was: Adding .abs() method to the array object)

2013-02-26 Thread josef . pktd
On Tue, Feb 26, 2013 at 9:39 AM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 25, 2013 at 8:23 PM, Alan G Isaac alan.is...@gmail.com wrote: I'm hoping this discussion will return to the drawing the line question.

Re: [Numpy-discussion] drawing the line (was: Adding .abs() method to the array object)

2013-02-26 Thread josef . pktd
On Tue, Feb 26, 2013 at 12:33 PM, eat e.antero.ta...@gmail.com wrote: Huh, On Tue, Feb 26, 2013 at 5:03 PM, josef.p...@gmail.com wrote: On Tue, Feb 26, 2013 at 9:39 AM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 25, 2013 at 8:23 PM, Alan G Isaac alan.is...@gmail.com wrote:

Re: [Numpy-discussion] drawing the line (was: Adding .abs() method to the array object)

2013-02-26 Thread josef . pktd
On Tue, Feb 26, 2013 at 1:11 PM, josef.p...@gmail.com wrote: On Tue, Feb 26, 2013 at 12:33 PM, eat e.antero.ta...@gmail.com wrote: Huh, On Tue, Feb 26, 2013 at 5:03 PM, josef.p...@gmail.com wrote: On Tue, Feb 26, 2013 at 9:39 AM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 25,

Re: [Numpy-discussion] Leaking memory problem

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 8:41 AM, Jaakko Luttinen jaakko.lutti...@aalto.fi wrote: Hi! I was wondering if anyone could help me in finding a memory leak problem with NumPy. My project is quite massive and I haven't been able to construct a simple example which would reproduce the problem.. I

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:49 PM, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote:

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry that i didnt search for an old thread, but because i disagree

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 9:58 PM, josef.p...@gmail.com wrote: On Mon, Feb 25, 2013 at 9:20 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-02-25 at 10:50 -0500, Skipper Seabold wrote: On Mon, Feb 25, 2013 at 10:43 AM, Till Stensitzki mail.t...@gmx.de wrote: First, sorry

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-23 Thread josef . pktd
On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern robert.k...@gmail.com wrote: On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki mail.t...@gmx.de wrote: Hello, i know that the array object is already crowded, but i would like to

Re: [Numpy-discussion] another discussion on numpy correlate (and convolution)

2013-02-22 Thread josef . pktd
On Thu, Feb 21, 2013 at 1:00 PM, Pierre Haessig pierre.haes...@crans.org wrote: Hi everybody, (just coming from a discussion on the performance of Matplotlib's (x)corr function which uses np.correlate) There have been already many discussions on how to compute (cross-)correlations of

[Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
I'm convinced that I saw a while ago a function that uses a list of interval boundaries to index into an array, either to iterate or to take. I thought that's very useful, but didn't make a note. Now, I have no idea where I saw this (I thought numpy), and I cannot find it anywhere. any clues?

Re: [Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
On Wed, Feb 6, 2013 at 2:17 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Wed, 2013-02-06 at 13:08 -0500, josef.p...@gmail.com wrote: I'm convinced that I saw a while ago a function that uses a list of interval boundaries to index into an array, either to iterate or to take. I

Re: [Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
On Wed, Feb 6, 2013 at 2:45 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Feb 6, 2013 at 1:08 PM, josef.p...@gmail.com wrote: I'm convinced that I saw a while ago a function that uses a list of interval boundaries to index into an array, either to iterate or to take. I thought that's

Re: [Numpy-discussion] Any plans for windows 64-bit installer for 1.7?

2013-02-04 Thread josef . pktd
On Mon, Feb 4, 2013 at 4:15 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Mon, Feb 4, 2013 at 10:06 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Feb 4, 2013 at 12:55 PM, Ralf Gommers ralf.gomm...@gmail.com wrote: On Mon, Feb 4, 2013 at 9:39 PM, Nathaniel Smith

Re: [Numpy-discussion] Installing numpy-mkl binary on top of Python(x, y)

2013-01-27 Thread josef . pktd
On Sun, Jan 27, 2013 at 2:54 PM, Christoph Gohlke cgoh...@uci.edu wrote: On 1/27/2013 11:40 AM, olli.wal...@elisanet.fi wrote: Hi, if I want to have a painless Python installation build against Intel MKL on Windows, one obvious choice is to just buy the EPD package. However, as I already do

Re: [Numpy-discussion] Casting Bug or a Feature?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 2:34 AM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Hi, Actually, this behavior is already present in other languages, so I'm -1 on additional verbosity. Of course a += b is not the same as a = a + b. The first one modifies the object a, the second one creates

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 9:49 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 17, 2013 at 8:54 AM, Jim Vickroy jim.vick...@noaa.gov wrote: On 1/16/2013 11:41 PM, Nathaniel Smith wrote: On 16 Jan 2013 17:54, josef.p...@gmail.com wrote: a = np.random.random_integers(0, 5, size=5) b

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 10:24 AM, josef.p...@gmail.com wrote: On Thu, Jan 17, 2013 at 9:49 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 17, 2013 at 8:54 AM, Jim Vickroy jim.vick...@noaa.gov wrote: On 1/16/2013 11:41 PM, Nathaniel Smith wrote: On 16 Jan 2013 17:54,

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-16 Thread josef . pktd
On Wed, Jan 16, 2013 at 7:11 PM, eat e.antero.ta...@gmail.com wrote: Hi, In a recent thread http://article.gmane.org/gmane.comp.python.numeric.general/52772 it was proposed that .fill(.) should return self as an alternative for a trivial two-liner. I'm raising now the question: what if all

<    1   2   3   4   5   6   7   8   9   10   >