[SciPy-user] indexes in very large matrices
Kurt J
kurtjx at gmail.com
Mon Mar 17 13:58:13 EDT 2008
Hi List,
I have a rather large matrix (15k x 15k) and I was hoping there was a nice
efficient way to search thru it. Currently I am just using for loops to go
thru the rows and columns...
for i, iKey in enumerate(self.matrixKey):
> for j, jKey in enumerate(self.matrixKey):
> if self.matrix[i][j] <= threshold and not self.matrix[i][j]
> == 0.0:
> print "threshold at " + str(iKey) + " and " +str(jKey)
>
Can I do something more clever? Quicker?
BTW Numpy and Scipy rock!!!
Cheers,
Kurt J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080317/23bcce6d/attachment.html>
More information about the SciPy-User
mailing list