scipy.sparse.dia_matrix.

ndim#

property dia_matrix.ndim#