Finding Nonzero Elements in a Sparse Matrix

2006-11-07 Thread deLenn
Hi, Does scipy have an equivalent to Matlab's 'find' function, to list the indices of all nonzero elements in a sparse matrix? Cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding Nonzero Elements in a Sparse Matrix

2006-11-07 Thread deLenn
([0, 1, 3]) > > nonzero() will return the a sequence of index arrays of non zero > elements > flatnonzero() returns the non-zero elements of the flattened version > of the array. > > Cheers, > Nick Vatamaniuc > > > > deLenn wrote: > > Hi, > > > &g