Helper function to compute the elements in g0 that have no zero values.The function is taken from the Ringo package
.nonzero(x)
x
A matrix of class "dgCMatrix"