[Numpy-discussion] char with native integer signedness

2013-10-30 Thread Geoffrey Irving
Is there a standard way in numpy of getting a char with C-native integer signedness? I.e., boost::is_signed::value ? numpy.byte : numpy.ubyte but without nonsensical mixing of languages? Thanks, Geoffrey ___ NumPy-Discussion mailing list NumPy-Dis

[Numpy-discussion] ANN: NumPy 1.8.0 release.

2013-10-30 Thread Charles R Harris
I am pleased to announce the availability of NumPy 1.8.0. This release is the culmination of over a years worth of work by the NumPy team and contains many fixes, enhancements, and new features. Highlights are: - New, no 2to3, Python 2 and Python 3 are supported by a common code base. - N

[Numpy-discussion] timedelta64 NaT doesn't print correctly when printing an ndarray

2013-10-30 Thread Tanay Shah
When printing a timedelta64('NaT') scalar, it converts to string correctly but when you print an ndarray where an element is timedelta64('NaT'), it prints the element as its internal representation (-9223372036854775808) >>> numpy.timedelta64('NaT') numpy.timedelta64('NaT') >>> print numpy.timede

Re: [Numpy-discussion] 1.7.2

2013-10-30 Thread Ralf Gommers
On Wed, Oct 30, 2013 at 12:56 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > > On Tue, Oct 29, 2013 at 4:55 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 29.10.2013 21:00, Charles R Harris wrote: >> > >> > >> > >> > On Tue, Oct 29, 2013 at 1:57 PM, Charles R H

Re: [Numpy-discussion] getting the equivalent complex dtype from a real or int array

2013-10-30 Thread Henry Gomersall
On 29/10/13 18:01, Sebastian Berg wrote: > On Tue, 2013-10-29 at 16:47 +, Henry Gomersall wrote: >> >Is there a way to extract the size of array that would be created by >> >doing 1j*array? >> > > There is np.result_type. It does the handling of scalars as normal, > dtypes will be handled like

Re: [Numpy-discussion] getting the equivalent complex dtype from a real or int array

2013-10-30 Thread Eraldo Pomponi
> We really ought to have a special page for all of Robert's little gems! > I'm totally in favor or having that page. In my gmail account almost every Robert's answer gets a star!!! Maybe one day I'll try to put them together. Cheers, EP ___ NumPy-Discu