einsum_path

xarray_einstats.einsum_path(dims, *operands, keep_dims=frozenset({}), optimize=None, **kwargs)[source]

Expose numpy.einsum_path with an xarray-like API.

See xarray_einstats.einsum for a detailed description of dims and operands.

Parameters:
dimslist[list[str]]
operandsxarray.DataArray
optimizestr, optional

optimize argument for numpy.einsum_path. It defaults to None so that we always default to numpy’s default, without needing to keep the call signature here up to date.

**kwargs

Passed to xarray.apply_ufunc