{ } Raw JSON

bundles / scipy 1.18.0 / scipy / sparse / _matrix / spmatrix / set_shape

function

scipy.sparse._matrix:spmatrix.set_shape

source: /scipy/sparse/_matrix.py:68

Signature

def set_shape(self, shape)

Summary

Set the shape of the matrix in-place

Aliases

  • scipy.sparse.spmatrix.set_shape