Perform the action for each index in the (sparse) matrix. This skips sparse indices.
Perform the action for each index in the matrix. This version uses the non-sparse nature of the matrix.