![](https://secure.gravatar.com/avatar/d41fa6e1fe29e6c5c5821b5a3f31f190.jpg?s=120&d=mm&r=g)
March 6, 2006
2:38 p.m.
Hi, Consider the sparse vector
x <420x1 sparse matrix of type '<type 'float64scalar'>' with 2 stored elements (space for 2) in Compressed Sparse Row format> print x (3, 0) 1.0 (30, 0) 1.0
x.getnnz() yields the number of nonzero elements
x.getnnz() 2
How can I obtain the pattern of x ? I mean the indices of nonzero elements. Nils