[Numpy-discussion] get information/position of value from matrix

ioannis syntychakis ioannis87 at gmail.com
Wed Apr 7 10:40:24 EDT 2010


Hallo Everybody,

I am new in this mail list and python. But I am working at something and I
need your help.

I have a very big matrix. What I want is to search in that matrix for values
above the (for example:) 150. If there are values above the 150, I also want
to get their position and value.

Is this possible?
Thanks in advance!!

ps. could you also tell me how i can show the whole matrix? because now i
see:

[[ 0. 0. 0. ..., 87. 4. 4.]
 [ 0. 0. 0. ..., 89. 6. 4.]
 [ 0. 1. 0. ..., 87. 4. 3.]
 ...,
 [ 0. 0. 0. ..., 87. 4. 4.]
 [ 0. 3. 0. ..., 87. 4. 4.]
 [ 0. 0. 4. ..., 87. 4. 4.]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100407/d9755f97/attachment.html>


More information about the NumPy-Discussion mailing list