Re: [Numpy-discussion] Endianness not detected in OS X Lion

2014-10-15 Thread Nicola
In article <543eac76.7070...@googlemail.com>, Julian Taylor wrote: > On 15.10.2014 16:21, Nicola wrote: > > Hi, > > I am trying to install numpy 1.9.0 on OS X Lion 10.7.5 and I get the > > same error as reported in this old thread: > >

[Numpy-discussion] Endianness not detected in OS X Lion

2014-10-15 Thread Nicola
ystem's clang or gcc 4.9 (installed with Homebrew). Is there a workaround for this? Nicola ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Search array in array

2013-07-29 Thread Nicola Creati
On 07/29/2013 10:27 PM, Gabe Schwartz wrote: > C = (A[..., np.newaxis, np.newaxis] == B) > rows = (C.sum(axis=(1,2,3)) >= B.shape[1]).nonzero()[0] Hello, thank you, it's not fast but really nice. Nicola -- _____

[Numpy-discussion] Search array in array

2013-07-29 Thread Nicola Creati
[14, 21]] I need to search rows of A that contain elements of each row of B regardless of the order of the elements in B. The searched results is: [2, 6] . Thanks. Nicola -- _ Nicola Creati Istituto Nazionale di Oceanogra

Re: [Numpy-discussion] Fromfile Issue

2012-03-09 Thread Nicola Creati
Il 09/03/2012 14:33, Warren Weckesser ha scritto: On Fri, Mar 9, 2012 at 7:26 AM, Nicola Creati <mailto:ncre...@inogs.it>> wrote: Hello, I'm writing a library able to read LAS lidar files. I generally use it under Linux without any problems. I'm now testing

[Numpy-discussion] Fromfile Issue

2012-03-09 Thread Nicola Creati
lice" array size changes. I'm using numpy 1.6.1 64bit (taken from Christoph Gohlke website) , with python 2.7.2 64 bit. Under Linux Ubuntu 10.10 64bit and numpy 1.6.1 the code works as expected. Thanks. Nicola ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Binning

2011-12-22 Thread Nicola Creati
desired bin size assigning to each cell (bin) the minimum z of all points that fall in that cell(bin). Moreover I need indexes of points that fall in each cell(bin). Is there any way to accomplish this task in numpy? Thanks. Nicola Creati -- Nicola Creati Istituto Nazionale di Oceanografia e

Re: [Numpy-discussion] mac os x installation

2010-05-13 Thread Nicola
onfig.ConfigError: Error reading config file 'setup.cfg': no such option 'doctest-extension' >>> On Thu, May 13, 2010 at 11:57 PM, Patrick Marsh wrote: > You need to install the "nose" module to run the test suite. > > http://code.google.com/p/pyt

[Numpy-discussion] mac os x installation

2010-05-13 Thread Nicola
Hi. I've to admit that I'm quite new in python and also to numpy. I'm trying to install numpy and scypy on my mac (Mac Os X 10.6.3). I've installed the last version of python (Python 2.6.5 Mac OS X Installer Disk Image )

[Numpy-discussion] Sum over array elements

2010-04-12 Thread Nicola Creati
Hello, I want to calculate, given a one dimension array, the sum over every two elements of the array. I found this working solution: a = N.arange(10) b = a.reshape(a, (5, 2)) c = b.sum(axis=1) Is there any better solution? Thanks, Nicola Creati

Re: [Numpy-discussion] Extract subset from an array

2010-02-17 Thread Nicola Creati
Francesc Alted wrote: > A Wednesday 17 February 2010 08:34:06 Nicola Creati escrigué: > >> Any kind of improvement is really appreciated. >> > > Well, if you cannot really transpose your matrix, numexpr can also serve as a > good accelerator: > > In

Re: [Numpy-discussion] Extract subset from an array

2010-02-16 Thread Nicola Creati
t; > In [32]: %timeit c = (array[:,0]>x_min); c &= (array[:,0] c &= (array[:,1]>y_min); c &= (array[:,1] 1 loops, best of 3: 604 ms per loop > > Only ~5% speedup though, so not a big deal. > > Neil Any kind of improvement is really appreciated. Thank you. Nicola ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Extract subset from an array

2010-02-16 Thread Nicola Creati
Hello, I need to extract a subset from a Nx3 array. Each row has x, y, and z coordinates. The subset is just a portion of the array in which the following condition realizes x_min < x < x_max and y_min < y < y_max The problem reduce to the extraction of points inside a rectangular box defined