EinopsΒΆ

Wrappers for einops.

The einops module is available only from xarray_einstats.einops and is not imported when doing import xarray_einstats. To use it you need to have installed einops manually or alternatively install this library as xarray-einstats[einops] or xarray-einstats[all]. Details about the exact command are available at Installation

Tip

The functions above are also available via the .einops accessor from DataArray objects. See Einops tutorial (ported) for example usage.

rearrange(da, pattern[, pattern_in, dim_lengths])

Expose einops.rearrange with an xarray-like API.

reduce(da, pattern, reduction[, pattern_in, ...])

Expose einops.reduce with an xarray-like API.

DaskBackend()

Dask backend class for einops.