This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / sparse / _matrix / spmatrix / set_shape

function

scipy.sparse._matrix:spmatrix.set_shape

source: build-install/usr/lib/python3.14/site-packages/scipy/sparse/_matrix.py:89

Signature

def set_shape(self, shape)

Summary

Set the shape of the matrix in-place

Aliases

  • scipy.sparse.spmatrix.set_shape