scipy.sparse.dia_matrix. set_shape# dia_matrix.set_shape(shape)[Quelle]# Setzt die Form der Matrix inplace