GCXS.reshape

GCXS.reshape(shape, order='C', compressed_axes=None)[source]

Returns a new GCXS array that is a reshaped version of this array.

Parameters
  • shape (tuple[int]) – The desired shape of the output array.

  • compressed_axes (Iterable[int], optional) – The axes to compress to store the array. Finds the most efficient storage by default.

Returns

The reshaped output array.

Return type

GCXS

See also

numpy.ndarray.reshape

The equivalent Numpy function.

sparse.COO.reshape

The equivalent COO function.

Notes

The order parameter is provided just for compatibility with Numpy and isn’t actually supported.