set_shape — SciPy v1.15.3 Manual (original) (raw)

scipy.sparse.csc_matrix.

csc_matrix.set_shape(shape)[source]#

Set the shape of the matrix in-place