matrix_transpose

xarray_einstats.linalg.matrix_transpose(da, dims=None)[source]

Transpose the underlying matrix without modifying the dimensions.

This convenience function uses rename followed by transpose to get the equivalent of a matrix transposition.

Parameters:
daxarray.DataArray

Input DataArray

dimslist of str, optional

Matrix dimensions

Returns:
xarray.DataArray

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