matrix_transpose#
- xarray_einstats.linalg.matrix_transpose(da, dims)[source]#
Transpose the underlying matrix without modifying the dimensions.
This convenience function uses
swap_dims
followed bytranspose
to get the equivalent of a matrix transposition.- Parameters:
- da
xarray.DataArray
Input DataArray
- dims
list
ofstr
Matrix dimensions
- da
- Returns:
xarray.DataArray
The DataArray after transposing the matrix data but leaving the dimensions untouched.