scipy.sparse.dia_matrix.

get_shape

dia_matrix.get_shape()[source]

Get the shape of the matrix