scipy.sparse.lil_matrix.diagonal

lil_matrix.diagonal()

Returns the main diagonal of the matrix

This Page