Thanks Pontus!
El viernes, 10 de octubre de 2014 17:07:25 UTC+9, JVaz escribió: > > Hello, > I have a sparse vector, is there any function that returns an array with > the index of its nonzero entires? > > E.g I have > > A > > 1048576x1 sparse matrix with 2 Float64 entries: > [1 , 1] = 0.5 > [32801 , 1] = 0.5 > > > I want a function(A) --> [1,32801] > > > Thanks! > > (I thought this wold be basic, but I couldn't find info in the documentation > or the forums, sorry if I missed it) > >
