- csc_matrix.reshape(shape, order='C')¶
Gives a new shape to a sparse matrix without changing its data.
shape : length-2 tuple of ints
The new shape should be compatible with the original shape.
order : ‘C’, optional
This argument is in the signature solely for NumPy compatibility reasons. Do not pass in anything except for the default value, as this argument is not used.
reshaped_matrix : self with the new dimensions of shape
- NumPy’s implementation of ‘reshape’ for matrices