Re: [Numpy-discussion] Structured array dtype

2013-08-30 Thread Stéfan van der Walt
Hi Nicolas On Fri, 30 Aug 2013 17:26:51 +0200, Nicolas Rougier wrote: > >>> Z = np.zeros(10, [('a', np.float32, 3), ('b', np.float32, 4)]) > > >>> Z['a'].dtype > dtype('float32') > > >>> Z.dtype['a'] > dtype((' > > Does that mean that dtype['a'] is the dtype of field 'a' when in Z, while > Z[

Re: [Numpy-discussion] ANN: Scipy 0.13.0 beta 1 release

2013-08-30 Thread David Cournapeau
It looks like it broke the build with MKL as well (in, surprised, ARPACK). I will investigate this further this WE On Thu, Aug 22, 2013 at 2:12 PM, Ralf Gommers wrote: > Hi all, > > I'm happy to announce the availability of the first beta release of Scipy > 0.13.0. Please try this beta and repor

[Numpy-discussion] Structured array dtype

2013-08-30 Thread Nicolas Rougier
Hi, I'm a bit lost with the following example (numpy 1.7.1, osx 10.8): >>> Z = np.zeros(10, [('a', np.float32, 3), ('b', np.float32, 4)]) >>> Z['a'].dtype dtype('float32') >>> Z.dtype['a'] dtype(('>> Z['a'].view(Z.dtype['a']) ValueError: new type not compatible with array. Nicolas _

Re: [Numpy-discussion] _PyADt

2013-08-30 Thread Stéfan van der Walt
On Fri, Aug 30, 2013 at 1:27 AM, Charles R Harris wrote: > Anyone know what _PyADt is? It turns up in ndarraytypes.h > > #define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(_PyADt(obj)) That code looks broken--can't we just remove it? Stéfan ___ NumPy-Disc

Re: [Numpy-discussion] Relative speed

2013-08-30 Thread Stéfan van der Walt
On Fri, Aug 30, 2013 at 6:20 AM, Anubhab Baksi wrote: > I need to deal with nearly 2**19 or 2**20 arrays of length about 250 each. As mentioned elsewhere in this thread: what does "deal" mean. You may be better off with something like: http://kwant-project.org/tinyarray/ Stéfan ___