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
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
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