[Numpy-discussion] Trouble building NumPy on PPC64

2012-03-19 Thread Andreas H.
Hi all, I have troube installing numpy in a virtual environment on a SuSE Enterprise 11 server (ppc64). Here is what I did: curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py python virtualenv.py --distribute --no-site-packages .virtualenvs/pydoas source .virtualenvs

Re: [Numpy-discussion] Using logical function on more than 2 arrays, availability of a "between" function ?

2012-03-19 Thread Richard Hattersley
What do you mean by "efficient"? Are you trying to get it execute faster? Or using less memory? Or have more concise source code? Less memory: - numpy.vectorize would let you get to the end result without any intermediate arrays but will be slow. - Using the "out" parameter of numpy.logical_and

[Numpy-discussion] Using logical function on more than 2 arrays, availability of a "between" function ?

2012-03-19 Thread Matthieu Rigal
Dear Numpy fellows, I have actually a double question, which only aims to answer a single one : how to get the following line being processed more efficiently : array = numpy.logical_and(numpy.logical_and(aBlueChannel < 1.0, aNirChannel > (aBlueChannel * 1.0)), aNirChannel < (aBlueChannel * 1.8