Getting all set values of a sparse matrix

See ?findnz:

julia> I, J, V = findnz(A)
([1, 2, 3], [1, 2, 3], [0, 2, 0])
2 Likes