scipy.sparse.dok_matrix.

set_shape#

dok_matrix.set_shape(shape)[source]#

就地設定矩陣的形狀