- dia_matrix.transpose(axes=None, copy=False)#
Reverses the dimensions of the sparse array.
- axesNone, optional
This argument is in the signature solely for NumPy compatibility reasons. Do not pass in anything except for the default value.
- copybool, optional
Indicates whether or not attributes of self should be copied whenever possible. The degree to which attributes are copied varies depending on the type of sparse array being used.
- pself with the dimensions reversed.
NumPy’s implementation of ‘transpose’ for ndarrays