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 by transpose to get the equivalent of a matrix transposition.

Parameters:
daxarray.DataArray

Input DataArray

dimslist of str

Matrix dimensions

Returns:
xarray.DataArray

The DataArray after transposing the matrix data but leaving the dimensions untouched.