scipy.sparse.coo_matrix.diagonal

coo_matrix.diagonal()

Returns the main diagonal of the matrix

This Page