matrix_transpose¶
- xarray_einstats.linalg.matrix_transpose(da, dims)[source]¶
Transpose the underlying matrix without modifying the dimensions.
This convenience function uses
swap_dimsfollowed bytransposeto get the equivalent of a matrix transposition.- Parameters:
- da
xarray.DataArray Input DataArray
- dims
listofstr Matrix dimensions
- da
- Returns:
xarray.DataArrayThe DataArray after transposing the matrix data but leaving the dimensions untouched.