scipy.sparse.spmatrix.

set_shape#

spmatrix.set_shape(shape)[источник]#

Установить форму матрицы на месте