scipy.sparse.dia_matrix.

set_shape#

dia_matrix.set_shape(shape)[源代码]#

原地设置矩阵的形状