scipy.sparse.dia_matrix.diagonal

dia_matrix.diagonal()[source]

Returns the main diagonal of the matrix

Previous topic

scipy.sparse.dia_matrix.deg2rad

Next topic

scipy.sparse.dia_matrix.dot