scipy.sparse.lil_matrix.diagonal

lil_matrix.diagonal()[source]

Returns the main diagonal of the matrix

Previous topic

scipy.sparse.lil_matrix.copy

Next topic

scipy.sparse.lil_matrix.dot