Re: [Numpy-discussion] Int casting different across platforms

2011-11-05 Thread Charles R Harris
On Sat, Nov 5, 2011 at 7:35 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Nov 5, 2011 at 4:07 PM, Matthew Brett matthew.br...@gmail.com wrote: Intel, gcc: 4, -2147483648 PPC, gcc: 4, 2147483647 I think that's what you predicted. Is it strange that the same compiler gives

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 12:57 AM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sat, Nov 12, 2011 at 11:35 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, Sorry for my continued confusion here. This is numpy 1.6.1 on windows XP 32 bit. In [2]: np.finfo(np.float96).nmant

Re: [Numpy-discussion] ANN: SciPy 0.10.0 released

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 12:19 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: Hi all, I am pleased to announce the availability of SciPy 0.10.0. For this release over a 100 tickets and pull requests have been closed, and many new features have been added. Some of the highlights are: -

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 2:25 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sun, Nov 13, 2011 at 8:21 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 12:57 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Nov 12, 2011 at 11

Re: [Numpy-discussion] Odd-looking long double on windows 32 bit

2011-11-13 Thread Charles R Harris
On Sun, Nov 13, 2011 at 3:56 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sun, Nov 13, 2011 at 1:34 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Nov 13, 2011 at 2:25 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sun, Nov 13, 2011 at 8:21 AM

Re: [Numpy-discussion] numpy.array() of mixed integers and strings can truncate data

2011-12-01 Thread Charles R Harris
On Thu, Dec 1, 2011 at 6:52 AM, Thouis (Ray) Jones tho...@gmail.com wrote: Is this expected behavior? np.array([-345,4,2,'ABC']) array(['-34', '4', '2', 'ABC'], dtype='|S3') Given that strings should be the result, this looks like a bug. It's a bit of a corner case that probably slipped

Re: [Numpy-discussion] numpy.array() of mixed integers and strings can truncate data

2011-12-02 Thread Charles R Harris
On Fri, Dec 2, 2011 at 8:23 AM, Thouis (Ray) Jones tho...@gmail.com wrote: On Thu, Dec 1, 2011 at 17:39, Charles R Harris charlesr.har...@gmail.com wrote: Given that strings should be the result, this looks like a bug. It's a bit of a corner case that probably slipped through during

Re: [Numpy-discussion] NumPy Governance

2011-12-03 Thread Charles R Harris
On Sat, Dec 3, 2011 at 7:18 PM, Travis Oliphant teoliph...@gmail.comwrote: Hi everyone, There have been some wonderfully vigorous discussions over the past few months that have made it clear that we need some clarity about how decisions will be made in the NumPy community. When we were a

Re: [Numpy-discussion] NumPy Governance

2011-12-04 Thread Charles R Harris
On Sun, Dec 4, 2011 at 6:16 AM, Alan G Isaac alan.is...@gmail.com wrote: On 12/4/2011 1:43 AM, Charles R Harris wrote: I don't think there are 5 active developers, let alone 11. With hard work you might scrape together two or three. Having 5 or 11 people making decisions for the two

Re: [Numpy-discussion] failure to register ufunc loops for user defined types

2011-12-04 Thread Charles R Harris
On Sat, Dec 3, 2011 at 8:14 PM, Geoffrey Irving irv...@naml.us wrote: Hello, I'm trying to add a fixed precision rational number dtype to numpy, and am running into an issue trying to register ufunc loops. The code in question looks like int npy_rational =

Re: [Numpy-discussion] bug in PyArray_GetCastFunc

2011-12-04 Thread Charles R Harris
On Sat, Dec 3, 2011 at 5:28 PM, Geoffrey Irving irv...@naml.us wrote: When attempting to cast to a user defined type, PyArray_GetCast looks up the cast function in the dictionary but doesn't check if the entry exists. This causes segfaults. Here's a patch. Geoffrey diff --git

Re: [Numpy-discussion] failure to register ufunc loops for user defined types

2011-12-04 Thread Charles R Harris
On Sun, Dec 4, 2011 at 5:41 PM, Geoffrey Irving irv...@naml.us wrote: This may be the problem. Simple diffs are pleasant. I'm guessing this code doesn't get a lot of testing. Glad it's there, though! Geoffrey diff --git a/numpy/core/src/umath/ufunc_type_resolution.c

Re: [Numpy-discussion] bug in PyArray_GetCastFunc

2011-12-04 Thread Charles R Harris
On Sun, Dec 4, 2011 at 6:30 PM, Geoffrey Irving irv...@naml.us wrote: On Sun, Dec 4, 2011 at 10:02 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Dec 3, 2011 at 5:28 PM, Geoffrey Irving irv...@naml.us wrote: When attempting to cast to a user defined type

Re: [Numpy-discussion] failure to register ufunc loops for user defined types

2011-12-04 Thread Charles R Harris
On Sun, Dec 4, 2011 at 6:59 PM, Geoffrey Irving irv...@naml.us wrote: On Sun, Dec 4, 2011 at 5:18 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Dec 4, 2011 at 5:41 PM, Geoffrey Irving irv...@naml.us wrote: This may be the problem. Simple diffs are pleasant. I'm

Re: [Numpy-discussion] failure to register ufunc loops for user defined types

2011-12-05 Thread Charles R Harris
Hi Geoffrey, On Mon, Dec 5, 2011 at 12:37 AM, Geoffrey Irving irv...@naml.us wrote: On Sun, Dec 4, 2011 at 6:45 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Dec 4, 2011 at 6:59 PM, Geoffrey Irving irv...@naml.us wrote: On Sun, Dec 4, 2011 at 5:18 PM, Charles R Harris

Re: [Numpy-discussion] NumPy Governance

2011-12-05 Thread Charles R Harris
On Mon, Dec 5, 2011 at 12:43 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Dec 5, 2011 at 12:06 PM, Mark Wiebe mwwi...@gmail.com wrote: On Sat, Dec 3, 2011 at 6:18 PM, Travis Oliphant teoliph...@gmail.comwrote: Hi everyone, There have been some wonderfully vigorous discussions over the

Re: [Numpy-discussion] numpy 1.7.0 release?

2011-12-06 Thread Charles R Harris
On Mon, Dec 5, 2011 at 12:43 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: Hi all, It's been a little over 6 months since the release of 1.6.0 and the NA debate has quieted down, so I'd like to ask your opinion on the timing of 1.7.0. It looks to me like we have a healthy amount of bug

Re: [Numpy-discussion] NumPy Governance

2011-12-10 Thread Charles R Harris
On Sat, Dec 10, 2011 at 8:19 AM, Bruce Southey bsout...@gmail.com wrote: On Mon, Dec 5, 2011 at 11:32 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, 2011/12/5 Stéfan van der Walt ste...@sun.ac.za: As for barriers to entry, improving the the nature of discourse on the mailing

Re: [Numpy-discussion] polynomial with negative exponents

2011-12-12 Thread Charles R Harris
On Mon, Dec 12, 2011 at 10:17 AM, Gregor Thalhammer gregor.thalham...@gmail.com wrote: Am 12.12.2011 um 15:04 schrieb LASAGNA DAVIDE: Hi, I have written a class for polynomials with negative exponents like: p(x) = a0 + a1*x**-1 + ... + an*x**-n The code is this one: class

Re: [Numpy-discussion] Problem installing NumPy with Python 3.2.2/MacOS X 10.7.2

2011-12-16 Thread Charles R Harris
On Fri, Dec 16, 2011 at 4:07 PM, McNicol, Adam amcni...@longroad.ac.ukwrote: ** Hi There, I am very new to numpy and have really only started investigating it as one of my students needs some functionality from matplotlib. I have managed to install everything under Windows for work in

Re: [Numpy-discussion] numpy 1.7.0 release?

2011-12-20 Thread Charles R Harris
Hi Ralf, On Mon, Dec 5, 2011 at 12:43 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: Hi all, It's been a little over 6 months since the release of 1.6.0 and the NA debate has quieted down, so I'd like to ask your opinion on the timing of 1.7.0. It looks to me like we have a healthy

Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error

2011-12-20 Thread Charles R Harris
On Tue, Dec 20, 2011 at 3:16 PM, Jack Bryan dtustud...@hotmail.com wrote: Hi, I have set up PYTHONPATH : sys.path ['', '/mypath/numpy/lib/python2.7/site-packages', '/ mypath/python272/lib/python27.zip', '/ mypath/python272/lib/python2.7', '/

Re: [Numpy-discussion] test code for user defined types in numpy

2011-12-20 Thread Charles R Harris
On Tue, Dec 20, 2011 at 7:24 PM, Geoffrey Irving irv...@naml.us wrote: Hello, As a followup to the prior thread on bugs in user defined types in numpy, I converted my rational number class from C++ to C and switched to 32 bits to remove the need for unportable 128 bit numbers. It should be

Re: [Numpy-discussion] test code for user defined types in numpy

2011-12-21 Thread Charles R Harris
Hi Geoffrey, On Tue, Dec 20, 2011 at 7:24 PM, Geoffrey Irving irv...@naml.us wrote: Hello, As a followup to the prior thread on bugs in user defined types in numpy, I converted my rational number class from C++ to C and switched to 32 bits to remove the need for unportable 128 bit numbers.

Re: [Numpy-discussion] test code for user defined types in numpy

2011-12-21 Thread Charles R Harris
On Wed, Dec 21, 2011 at 1:37 PM, Geoffrey Irving irv...@naml.us wrote: On Wed, Dec 21, 2011 at 3:56 AM, Charles R Harris charlesr.har...@gmail.com wrote: Hi Geoffrey, On Tue, Dec 20, 2011 at 7:24 PM, Geoffrey Irving irv...@naml.us wrote: Hello, As a followup to the prior thread

[Numpy-discussion] Change in __array_priority__ behavior breaks code.

2011-12-23 Thread Charles R Harris
Hi All, The following change breaks existing code, my polynomial classes for example. File: numpy/core/src/umath/ufunc_object.c Previous Code: /* * FAIL with NotImplemented if the other object has * the __rop__ method and has __array_priority__ as * an attribute (signalling

[Numpy-discussion] GSOC

2011-12-29 Thread Charles R Harris
Hi All, I thought I'd raise this topic just to get some ideas out there. At the moment I see two areas that I'd like to see addressed. 1. Documentation editor. This would involve looking at the generated documentation and it's organization/coverage as well such things as style and

Re: [Numpy-discussion] GSOC

2011-12-31 Thread Charles R Harris
On Thu, Dec 29, 2011 at 2:36 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Thu, Dec 29, 2011 at 9:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I thought I'd raise this topic just to get some ideas out there. At the moment I see two areas that I'd like to see

[Numpy-discussion] polynomial package update

2012-01-02 Thread Charles R Harris
Hi All, I've made a pull request for a rather large update of the polynomial package. The new features are 1) Bug fixes 2) Improved documentation in the numpy reference 3) Preliminary support for multi-dimensional coefficient arrays 4) Support for NA in the fitting routines 5) Improved testing

Re: [Numpy-discussion] polynomial package update

2012-01-03 Thread Charles R Harris
On Mon, Jan 2, 2012 at 10:46 PM, josef.p...@gmail.com wrote: On Mon, Jan 2, 2012 at 9:44 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I've made a pull request for a rather large update of the polynomial package. The new features are 1) Bug fixes 2) Improved

[Numpy-discussion] np.zeros(2, 'S') returns empty strings.

2012-01-14 Thread Charles R Harris
This sort of makes sense, but is it the 'correct' behavior? In [20]: zeros(2, 'S') Out[20]: array(['', ''], dtype='|S1') It might be more consistent to return '0' instead, as in In [3]: zeros(2, int).astype('S') Out[3]: array(['0', '0'], dtype='|S24') Chuck

[Numpy-discussion] Fix for ticket #1973

2012-01-14 Thread Charles R Harris
I've put up a pull request for a fix to ticket #1973. Currently the fix simply propagates the maskna flag when the *.astype method is called. A more complicated option would be to add a maskna keyword to specify whether the output is masked or not or propagates the type of the source, but that

Re: [Numpy-discussion] GSOC

2012-01-14 Thread Charles R Harris
On Thu, Dec 29, 2011 at 2:36 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Thu, Dec 29, 2011 at 9:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I thought I'd raise this topic just to get some ideas out there. At the moment I see two areas that I'd like to see

Re: [Numpy-discussion] np.zeros(2, 'S') returns empty strings.

2012-01-14 Thread Charles R Harris
On Sat, Jan 14, 2012 at 5:21 PM, josef.p...@gmail.com wrote: On Sat, Jan 14, 2012 at 5:25 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jan 14, 2012 at 4:16 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jan 14, 2012 at 4:12 PM, Charles R Harris charlesr.har...@gmail.com wrote

Re: [Numpy-discussion] Fix for ticket #1973

2012-01-16 Thread Charles R Harris
On Mon, Jan 16, 2012 at 8:37 AM, Bruce Southey bsout...@gmail.com wrote: ** On 01/14/2012 04:31 PM, Charles R Harris wrote: I've put up a pull request for a fix to ticket #1973. Currently the fix simply propagates the maskna flag when the *.astype method is called. A more complicated option

Re: [Numpy-discussion] Fix for ticket #1973

2012-01-16 Thread Charles R Harris
On Mon, Jan 16, 2012 at 8:52 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jan 16, 2012 at 8:37 AM, Bruce Southey bsout...@gmail.com wrote: ** On 01/14/2012 04:31 PM, Charles R Harris wrote: I've put up a pull request for a fix to ticket #1973. Currently the fix simply

Re: [Numpy-discussion] Fix for ticket #1973

2012-01-16 Thread Charles R Harris
On Mon, Jan 16, 2012 at 8:37 AM, Bruce Southey bsout...@gmail.com wrote: ** On 01/14/2012 04:31 PM, Charles R Harris wrote: I've put up a pull request for a fix to ticket #1973. Currently the fix simply propagates the maskna flag when the *.astype method is called. A more complicated option

Re: [Numpy-discussion] Negative indexing.

2012-01-16 Thread Charles R Harris
On Sat, Jan 14, 2012 at 4:53 PM, Nathan Faggian nathan.fagg...@gmail.comwrote: Hi, I am finding it less than useful to have the negative index wrapping on nd-arrays. Here is a short example: import numpy as np a = np.zeros((3, 3)) a[:,2] = 1000 print a[0,-1] print a[0,-1] print

Re: [Numpy-discussion] segfault on searchsorted (1.6.2.dev-396dbb9)

2012-01-17 Thread Charles R Harris
On Tue, Jan 17, 2012 at 8:57 AM, Adam Klein a...@lambdafoundry.com wrote: Hello, I get a segfault here: In [1]: x = np.array([1,2,3], dtype='M') In [2]: x.searchsorted(2, side='left') But it's fine here: In [1]: x = np.array([1,2,3], dtype='M') In [2]: x.view('i8').searchsorted(2,

[Numpy-discussion] views and mask NA

2012-01-21 Thread Charles R Harris
Hi All, I'd like some feedback on how mask NA should interact with views. The immediate problem is how to deal with the real and imaginary parts of complex numbers. If the original has a masked value, it should show up as masked in the real and imaginary parts. But what should happen on

Re: [Numpy-discussion] bug in numpy.mean() ?

2012-01-24 Thread Charles R Harris
On Tue, Jan 24, 2012 at 4:21 PM, Kathleen M Tacina kathleen.m.tac...@nasa.gov wrote: ** I found something similar, with a very simple example. On 64-bit linux, python 2.7.2, numpy development version: In [22]: a = 4000*np.ones((1024,1024),dtype=np.float32) In [23]: a.mean() Out[23]:

Re: [Numpy-discussion] advanced indexing bug with huge arrays?

2012-01-25 Thread Charles R Harris
On Tue, Jan 24, 2012 at 3:30 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: On Tue, Jan 24, 2012 at 01:02:44PM -0500, David Warde-Farley wrote: On Tue, Jan 24, 2012 at 06:37:12PM +0100, Robin wrote: Yes - I get exactly the same numbers in 64 bit windows with 1.6.1. Alright,

Re: [Numpy-discussion] Unrealistic expectations of class Polynomial or a bug?

2012-01-28 Thread Charles R Harris
On Sat, Jan 28, 2012 at 11:15 AM, eat e.antero.ta...@gmail.com wrote: Hi, Short demonstration of the issue: In []: sys.version Out[]: '2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]' In []: np.version.version Out[]: '1.6.0' In []: from numpy.polynomial import

Re: [Numpy-discussion] Curious behavior of __radd__

2012-02-01 Thread Charles R Harris
On Wed, Feb 1, 2012 at 12:26 PM, Andreas Kloeckner li...@informa.tiker.netwrote: Hi all, here's something I don't understand. Consider the following code snippet: --- class A(object): def __radd__(self, other): print(type(other))

[Numpy-discussion] Heads up and macro deprecation.

2012-02-01 Thread Charles R Harris
Hi All, Two things here. 1) Some macros for threading and the iterator now require a trailing semicolon. This change will be reverted before the 1.7 release so that scipy 0.10 will compile, but because it is desirable in the long term it would be helpful if folks maintaining c extensions using

[Numpy-discussion] Documentation question.

2012-02-01 Thread Charles R Harris
The macro PyArray_RemoveLargest has been replaced by PyArray_RemoveSmallest (which seems strange), but I wonder if this documentation still makes sense. diff --git a/doc/source/user/c-info.beyond-basics.rst b/doc/source/user/ c-info.beyond-basics.rs index 9ed2ab3..3437985 100644 ---

Re: [Numpy-discussion] Heads up and macro deprecation.

2012-02-02 Thread Charles R Harris
On Thu, Feb 2, 2012 at 9:58 AM, Bruce Southey bsout...@gmail.com wrote: On 02/01/2012 02:53 PM, Charles R Harris wrote: Hi All, Two things here. 1) Some macros for threading and the iterator now require a trailing semicolon. This change will be reverted before the 1.7 release so

[Numpy-discussion] On making Numpy 1.7 a long term support release.

2012-02-04 Thread Charles R Harris
Hi All, In the discussion on deprecating old macros in 1.7 as part of pull request 189 https://github.com/numpy/numpy/pull/189 the issue of how to move numpy forward and start clearing the decks of accumulated cruft arose. The proposal here is to make the 1.7 a long term support release that we

Re: [Numpy-discussion] On making Numpy 1.7 a long term support release.

2012-02-04 Thread Charles R Harris
On Sat, Feb 4, 2012 at 3:03 PM, Travis Oliphant tra...@continuum.io wrote: We are spending a lot of time on NumPy and will be for the next few months. I think that 1.8 will be a better long term release. We need a few more fundamental features yet. Look for a roadmap document for

Re: [Numpy-discussion] Structure of polynomial module

2012-02-06 Thread Charles R Harris
2012/2/6 Stéfan van der Walt ste...@sun.ac.za Hi all, I noticed the following docstring on ``np.polynomial.polyval``: In [116]: np.polynomial.polyval? File: /home/stefan/src/numpy/numpy/lib/utils.py Definition: np.polynomial.polyval(*args, **kwds) Docstring: `polyval` is

[Numpy-discussion] Cython question

2012-02-09 Thread Charles R Harris
Hi All, Does anyone know how to make Cython emit a C macro? I would like to be able to #define NO_DEPRECATED_API and can do so by including a header file or futzing with the generator script, but I was wondering if there was an easy way to do it in Cython. Chuck

Re: [Numpy-discussion] numpy.arange() error?

2012-02-09 Thread Charles R Harris
On Thu, Feb 9, 2012 at 12:20 PM, Drew Frank drewfr...@gmail.com wrote: Eric Firing efiring at hawaii.edu writes: On 02/08/2012 09:31 PM, teomat wrote: Hi, Am I wrong or the numpy.arange() function is not correct 100%? Try to do this: In [7]: len(np.arange(3.1, 4.9,

Re: [Numpy-discussion] Commit rights to NumPy for Francesc Alted

2012-02-11 Thread Charles R Harris
On Sat, Feb 11, 2012 at 12:11 PM, Travis Oliphant tra...@continuum.iowrote: I propose to give Francesc Alted commit rights to the NumPy project. Francesc will be working full time on NumPy for several months and it will enable him to participate in pull requests. Francesc Alted has been very

[Numpy-discussion] @Dag re numpy.pxd

2012-02-11 Thread Charles R Harris
Hi Dag, This probably needs to be on the cython mailing list at some point, but I thought I'd start the discussion here. Numpy is going to begin deprecating direct access to ndarray/dtype internals, ala arr-data etc. There are currently macros/functions for many of these operations in the numpy

Re: [Numpy-discussion] Migrating issues to GitHub

2012-02-11 Thread Charles R Harris
On Sat, Feb 11, 2012 at 1:44 PM, Travis Oliphant tra...@continuum.iowrote: This is good feedback. It looks like there are 2 concerns: 1) no way to add attachments --- it would seem that gists and indeed other github repos solves that problem. 2) You must be an admin to label an issue (i.e.

Re: [Numpy-discussion] @Dag re numpy.pxd

2012-02-11 Thread Charles R Harris
On Sat, Feb 11, 2012 at 2:57 PM, mark florisson markflorisso...@gmail.comwrote: On 11 February 2012 21:45, Mark Wiebe mwwi...@gmail.com wrote: On Sat, Feb 11, 2012 at 3:27 PM, mark florisson markflorisso...@gmail.com wrote: On 11 February 2012 20:31, Charles R Harris charlesr.har

Re: [Numpy-discussion] Creating parallel curves

2012-02-12 Thread Charles R Harris
On Fri, Feb 10, 2012 at 9:38 AM, Andrea Gavana andrea.gav...@gmail.comwrote: Hi All, my apologies for my deep ignorance about math stuff; I guess I should be able to find this out but I keep getting impossible results. Basically I have a set of x, y data (around 1,000 elements each) and

Re: [Numpy-discussion] Creating parallel curves

2012-02-12 Thread Charles R Harris
On Sun, Feb 12, 2012 at 1:21 PM, Andrea Gavana andrea.gav...@gmail.comwrote: Jonathan, On 12 February 2012 20:53, Jonathan Hilmer wrote: Andrea, Here is how to do it with splines. I would be more standard to return an array of normals, rather than two arrays of x and y components, but

Re: [Numpy-discussion] Creating parallel curves

2012-02-12 Thread Charles R Harris
On Sun, Feb 12, 2012 at 1:26 PM, Andrea Gavana andrea.gav...@gmail.comwrote: Charles, On 12 February 2012 21:00, Charles R Harris wrote: On Fri, Feb 10, 2012 at 9:38 AM, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All, my apologies for my deep ignorance about math stuff

Re: [Numpy-discussion] Change in scalar upcasting rules for 1.6.x?

2012-02-13 Thread Charles R Harris
On Mon, Feb 13, 2012 at 9:04 PM, Travis Oliphant tra...@continuum.iowrote: I disagree with your assessment of the subscript operator, but I'm sure we will have plenty of time to discuss that. I don't think it's correct to compare the corner cases of the fancy indexing and regular indexing to

Re: [Numpy-discussion] Change in scalar upcasting rules for 1.6.x?

2012-02-13 Thread Charles R Harris
On Mon, Feb 13, 2012 at 11:00 PM, Travis Oliphant tra...@continuum.iowrote: No argument on any of this. It's just that this needs to happen at NumPy 2.0, not in the NumPy 1.X series. I think requiring a re-compile is far-less onerous than changing the type-coercion subtly in a 1.5 to

Re: [Numpy-discussion] Change in scalar upcasting rules for 1.6.x?

2012-02-13 Thread Charles R Harris
On Mon, Feb 13, 2012 at 11:07 PM, Travis Oliphant tra...@continuum.iowrote: No argument on any of this. It's just that this needs to happen at NumPy 2.0, not in the NumPy 1.X series. I think requiring a re-compile is far-less onerous than changing the type-coercion subtly in a 1.5 to

Re: [Numpy-discussion] Change in scalar upcasting rules for 1.6.x?

2012-02-14 Thread Charles R Harris
On Tue, Feb 14, 2012 at 12:58 AM, Travis Oliphant tra...@continuum.iowrote: The lack of commutativity wasn't in precision, it was in the typecodes, and was there from the beginning. That caused confusion. A current cause of confusion is the many to one relation of, say, int32 and long,

Re: [Numpy-discussion] @Dag re numpy.pxd

2012-02-14 Thread Charles R Harris
On Tue, Feb 14, 2012 at 7:22 AM, Gordon L. Kindlmann g...@uchicago.eduwrote: Hello, This (below) caught my eye and I'm wondering what further information is available? I very much value the ability to wrap underlying array data from numpy for processing in non-python libraries, as well as

Re: [Numpy-discussion] Implicit conversion of python datetime to numpy datetime64?

2012-02-14 Thread Charles R Harris
On Tue, Feb 14, 2012 at 9:17 PM, Benjamin Root ben.r...@ou.edu wrote: Just a thought I had. Right now, I can pass a list of python ints or floats into np.array() and get a numpy array with a sensible dtype. Is there any reason why we can't do the same for python's datetime? Right now, it

Re: [Numpy-discussion] Release management (was: Updated differences between 1.5.1 to 1.6.1)

2012-02-15 Thread Charles R Harris
On Tue, Feb 14, 2012 at 1:24 PM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Tue, Feb 14, 2012 at 7:25 PM, Travis Oliphant tra...@continuum.iowrote: On Feb 14, 2012, at 3:32 AM, David Cournapeau wrote: Hi Travis, It is great that some resources can be spent to have people paid

Re: [Numpy-discussion] Numpy governance update

2012-02-15 Thread Charles R Harris
On Wed, Feb 15, 2012 at 1:55 PM, Mark Wiebe mwwi...@gmail.com wrote: On Wed, Feb 15, 2012 at 12:09 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Wed, Feb 15, 2012 at 11:46 AM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Feb 15, 2012 at 1:32 PM, Alan G Isaac

Re: [Numpy-discussion] strange behavior of numpy.random.multivariate_normal, ticket:1842

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 10:07 AM, josef.p...@gmail.com wrote: On Thu, Feb 16, 2012 at 11:47 AM, josef.p...@gmail.com wrote: On Thu, Feb 16, 2012 at 11:30 AM, josef.p...@gmail.com wrote: On Thu, Feb 16, 2012 at 11:20 AM, Warren Weckesser warren.weckes...@enthought.com wrote: On Thu,

Re: [Numpy-discussion] strange behavior of numpy.random.multivariate_normal, ticket:1842

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 10:20 AM, Pauli Virtanen p...@iki.fi wrote: Hi, 16.02.2012 18:00, Nathaniel Smith kirjoitti: [clip] I agree, but the behavior is still surprising -- people reasonably expect something like svd to be deterministic. So there's probably a doc bug for alerting people

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 9:56 AM, Nathaniel Smith n...@pobox.com wrote: On Thu, Feb 16, 2012 at 12:27 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: If non-contributing users came along on the Cython list demanding that we set up a system to select non-developers along on a board

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 11:09 AM, josef.p...@gmail.com wrote: On Thu, Feb 16, 2012 at 12:53 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Feb 16, 2012 at 9:56 AM, Nathaniel Smith n...@pobox.com wrote: On Thu, Feb 16, 2012 at 12:27 AM, Dag Sverre Seljebotn d.s.seljeb

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 1:13 PM, Nathaniel Smith n...@pobox.com wrote: On Thu, Feb 16, 2012 at 5:17 PM, Travis Vaught tra...@vaught.net wrote: On Feb 16, 2012, at 10:56 AM, Nathaniel Smith wrote: Travis's proposal is that we go from a large number of self-selecting people putting in

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 1:45 PM, Nathaniel Smith n...@pobox.com wrote: On Thu, Feb 16, 2012 at 8:36 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, Feb 16, 2012 at 1:13 PM, Nathaniel Smith n...@pobox.com wrote: On Thu, Feb 16, 2012 at 5:17 PM, Travis Vaught tra

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 4:20 PM, josef.p...@gmail.com wrote: On Thu, Feb 16, 2012 at 5:56 PM, Warren Weckesser warren.weckes...@enthought.com wrote: On Thu, Feb 16, 2012 at 4:39 PM, Travis Oliphant tra...@continuum.io wrote: Mark Wiebe and I have been discussing off and on (as well

Re: [Numpy-discussion] Strange PyArray_FromObject() behavior

2012-02-16 Thread Charles R Harris
On Thu, Feb 16, 2012 at 10:09 AM, Spotz, William F wfsp...@sandia.govwrote: I have a user who is reporting tests that are failing on his platform. I have not been able to reproduce the error on my system, but working with him, we have isolated the problem to unexpected results when

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 8:01 AM, David Cournapeau courn...@gmail.comwrote: Hi Travis, On Thu, Feb 16, 2012 at 10:39 PM, Travis Oliphant tra...@continuum.io wrote: Mark Wiebe and I have been discussing off and on (as well as talking with Charles) a good way forward to balance two competing

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 11:37 AM, Neal Becker ndbeck...@gmail.com wrote: Mark Wiebe wrote: On Fri, Feb 17, 2012 at 11:52 AM, Eric Firing efir...@hawaii.edu wrote: On 02/17/2012 05:39 AM, Charles R Harris wrote: On Fri, Feb 17, 2012 at 8:01 AM, David Cournapeau courn...@gmail.com

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
wrote: On 02/17/2012 05:39 AM, Charles R Harris wrote: On Fri, Feb 17, 2012 at 8:01 AM, David Cournapeau courn...@gmail.com mailto:courn...@gmail.com wrote: Hi Travis, On Thu, Feb 16, 2012 at 10:39 PM, Travis Oliphant tra...@continuum.io mailto:tra

Re: [Numpy-discussion] [EXTERNAL] Re: Strange PyArray_FromObject() behavior

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 10:31 AM, Bill Spotz wfsp...@sandia.gov wrote: Chuck, I provided a little more context in another email. The user is using numpy 1.6.1 with python 2.6. I asked him to try an earlier version -- we'll see how it goes. This is code that has worked for a long time. It

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 4:44 PM, David Cournapeau courn...@gmail.comwrote: I don't think c++ has any significant advantage over c for high performance libraries. I am not convinced by the number of people argument either: it is not my experience that c++ is easier to maintain in a open source

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 6:54 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Fri, Feb 17, 2012 at 4:58 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Feb 17, 2012 at 4:44 PM, David Cournapeau courn...@gmail.com wrote: I don't think c++ has any significant

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 7:29 PM, David Cournapeau courn...@gmail.comwrote: Le 18 févr. 2012 00:58, Charles R Harris charlesr.har...@gmail.com a écrit : On Fri, Feb 17, 2012 at 4:44 PM, David Cournapeau courn...@gmail.com wrote: I don't think c++ has any significant advantage over

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 8:07 PM, Sturla Molden stu...@molden.no wrote: Den 18. feb. 2012 kl. 01:58 skrev Charles R Harris charlesr.har...@gmail.com: On Fri, Feb 17, 2012 at 4:44 PM, David Cournapeau courn...@gmail.comwrote: I don't think c++ has any significant advantage over c for high

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 9:10 PM, Sturla Molden stu...@molden.no wrote: For what it's worth, Cython supports C++ now. I'm sure there are people on this list that know much better than me the extent of this support, so I will let them chime in, but here are some docs on it:

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 9:18 PM, David Cournapeau courn...@gmail.comwrote: Le 18 févr. 2012 03:53, Charles R Harris charlesr.har...@gmail.com a écrit : On Fri, Feb 17, 2012 at 7:29 PM, David Cournapeau courn...@gmail.com wrote: Le 18 févr. 2012 00:58, Charles R Harris

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 9:18 PM, David Cournapeau courn...@gmail.comwrote: Le 18 févr. 2012 03:53, Charles R Harris charlesr.har...@gmail.com a écrit : On Fri, Feb 17, 2012 at 7:29 PM, David Cournapeau courn...@gmail.com wrote: Le 18 févr. 2012 00:58, Charles R Harris

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 9:47 PM, Sturla Molden stu...@molden.no wrote: Why would you even see an exception if it is caught before it escapes? I would expect the C API to behave just as it currently does. What am I missing? Structured exception handling in the OS. MSVC uses SEH for

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread Charles R Harris
On Fri, Feb 17, 2012 at 10:00 PM, David Cournapeau courn...@gmail.comwrote: Le 18 févr. 2012 04:37, Charles R Harris charlesr.har...@gmail.com a écrit : On Fri, Feb 17, 2012 at 9:18 PM, David Cournapeau courn...@gmail.com wrote: Le 18 févr. 2012 03:53, Charles R Harris

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Fri, Feb 17, 2012 at 10:16 PM, Sturla Molden stu...@molden.no wrote: Den 18. feb. 2012 kl. 05:56 skrev Charles R Harris charlesr.har...@gmail.com: But won't a C++ wrapper catch that? A try-catch block with MSVC will register an SEH with the operating system. GCC (g++) implements

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 12:21 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi. On Sat, Feb 18, 2012 at 12:18 AM, Christopher Jordan-Squire cjord...@uw.edu wrote: On Fri, Feb 17, 2012 at 11:31 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Fri, Feb 17, 2012 at 10:18 PM,

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 1:39 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Sat, Feb 18, 2012 at 12:35 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 18, 2012 at 12:21 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi. On Sat, Feb 18, 2012 at 12

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 2:17 PM, David Cournapeau courn...@gmail.comwrote: On Sat, Feb 18, 2012 at 8:45 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 18, 2012 at 1:39 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Sat, Feb 18, 2012 at 12:35 PM

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 2:51 PM, Matthew Brett matthew.br...@gmail.comwrote: On Sat, Feb 18, 2012 at 1:40 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, Feb 18, 2012 at 2:17 PM, David Cournapeau courn...@gmail.com wrote: On Sat, Feb 18, 2012 at 8:45 PM, Charles R

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 3:24 PM, David Cournapeau courn...@gmail.comwrote: On Sat, Feb 18, 2012 at 9:40 PM, Charles R Harris charlesr.har...@gmail.com wrote: Well, we already have code obfuscation (DOUBLE_your_pleasure, FLOAT_your_boat), so we might as well let the compiler handle

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 5:12 PM, Nathaniel Smith n...@pobox.com wrote: On Sat, Feb 18, 2012 at 10:54 PM, Travis Oliphant tra...@continuum.io wrote: I'm reading very carefully any arguments against using C++ because I've actually pushed back on Mark pretty hard as we've discussed these things

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-18 Thread Charles R Harris
On Sat, Feb 18, 2012 at 9:38 PM, Travis Oliphant tra...@continuum.iowrote: The decision will not be made until NumPy 2.0 work is farther along. The most likely outcome is that Mark will develop something quite nice in C++ which he is already toying with, and we will either choose to use it in

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-19 Thread Charles R Harris
On Sun, Feb 19, 2012 at 4:42 PM, Nathaniel Smith n...@pobox.com wrote: On Sun, Feb 19, 2012 at 1:42 PM, Neal Becker ndbeck...@gmail.com wrote: On Fedora linux I use ccache, which is completely transparant and makes a huge difference in build times. ccache is fabulous (and it's fabulous

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-20 Thread Charles R Harris
On Mon, Feb 20, 2012 at 2:54 AM, Pauli Virtanen p...@iki.fi wrote: 20.02.2012 08:35, Paul Anton Letnes kirjoitti: In the language wars, I have one question. Why is Fortran not being considered? Fortran is OK for simple numerical algorithms, but starts to suck heavily if you need to do any

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-20 Thread Charles R Harris
On Mon, Feb 20, 2012 at 9:55 AM, Sturla Molden stu...@molden.no wrote: Den 20.02.2012 17:42, skrev Sturla Molden: There are still other options than C or C++ that are worth considering. One would be to write NumPy in Python. E.g. we could use LLVM as a JIT-compiler and produce the

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-22 Thread Charles R Harris
Hi Perry, On Wed, Feb 22, 2012 at 6:44 AM, Perry Greenfield pe...@stsci.edu wrote: I, like Travis, have my worries about C++. But if those actually doing the work (and particularly the subsequent support) feel it is the best language for implementation, I can live with that. I particularly

  1   2   3   4   5   6   7   8   9   10   >