Re: [Numpy-discussion] ANN: Numpy 1.10.0rc1 released.

2015-09-24 Thread Jens Jørgen Mortensen
On 09/23/2015 06:07 AM, Nathaniel Smith wrote: On Tue, Sep 22, 2015 at 8:12 PM, Charles R Harris wrote: Hi all, I'm pleased to announce the availability of Numpy 1.10.0rc1. Sources and 32 bit binary packages for Windows may be found at Sourceforge. Please test this

Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.10.0b1 release

2015-08-12 Thread Jens Jørgen Mortensen
On 08/11/2015 11:23 PM, Charles R Harris wrote: Hi All, give this release a whirl and report any problems either on the numpy-discussion list or by opening an issue on github. I'm pleased to announce the first beta release of Numpy 1.10.0. There is over a year's worth of enhancements and bug

[Numpy-discussion] Python 3 and isinstance(np.int64(42), int)

2015-06-17 Thread Jens Jørgen Mortensen
Hi! I just finished porting a large code-base to Python 3 (making it work on 2.6, 2.7 and 3.4). It wasn't that difficult, but one thing gave me a hard time and it was this: Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more

Re: [Numpy-discussion] Float view of complex array

2015-01-26 Thread Jens Jørgen Mortensen
On 01/26/2015 11:02 AM, Jaime Fernández del Río wrote: On Mon, Jan 26, 2015 at 1:41 AM, Sebastian Berg sebast...@sipsolutions.net mailto:sebast...@sipsolutions.net wrote: On Mo, 2015-01-26 at 09:24 +0100, Jens Jørgen Mortensen wrote: Hi! I have a view of a 2-d complex

Re: [Numpy-discussion] 1.8.0rc1

2013-10-01 Thread Jens Jørgen Mortensen
Den 30-09-2013 17:17, Charles R Harris skrev: Hi All, NumPy 1.8.0rc1 is up now on sourceforge http://sourceforge.net/projects/numpy/files/NumPy/1.8.0rc1/ .The binary builds are included except for Python 3.3 on windows, which will arrive later. Many thanks to Ralf for the binaries, and to

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

2011-07-07 Thread Jens Jørgen Mortensen
Hi! With numpy 1.5, I get this: a = np.ones((2, 2)) (2 * a.T).strides (16, 8) With 1.6, I get this: (2 * a.T).strides (8, 16) So, this means I can't count on new arrays being C-contiguous any more. I guess there is a good reason for this. Anyway, I just thought I would mention it here -

Re: [Numpy-discussion] Non-contiguous array from newaxis indexing

2007-08-22 Thread Jens Jørgen Mortensen
Jens Jørgen Mortensen wrote: I would like all these arrays to be contiguous: import numpy as npy npy.__version__ '1.0.4.dev3967' x = npy.arange(4) y = x[npy.newaxis, :] z = x.reshape((1, 4)) for a in [x, y, z]: ... print a.shape, a.strides, a.flags.contiguous ... (4,) (4,) True

Re: [Numpy-discussion] Docstring standards for NumPy and SciPy

2007-01-11 Thread Jens Jørgen Mortensen
On Thu, 2007-01-11 at 07:08 -0700, Steven H. Rogers wrote: I'd prefer reStructuredText. I don't find the markup particularly noisy and it quickly fades into the background. I found some notes on the docutils page (about using reStructuredText in docstring):