cupyx.scipy.sparse.permute_dims#

cupyx.scipy.sparse.permute_dims(A, axes=None, copy=False)[source]#

Permute the axes of a sparse object.

Parameters:
  • A (cupyx.scipy.sparse) – Sparse 2-D object.

  • axes (tuple of int or None) – Permutation of axis indices. Defaults to reversing the axes (i.e. transpose).

  • copy (bool) – If True, the result does not share data with A.

Returns:

A with axes permuted.

Return type:

cupyx.scipy.sparse