Use findnz <http://docs.julialang.org/en/latest/stdlib/arrays/#Base.findnz>.

Am Mittwoch, 9. November 2016 14:37:11 UTC+1 schrieb Christoph Ortner:
>
> Is there as iterator implemented that allows me to iterate over all 
> non-zero entries of a sparse matrix or vector? E.g. 
>
> for (i, j, z) in nonzeros(A) 
>
>
> (I realise that nonzeros does something else!)
>
>

Reply via email to