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.

dimslist of list of str
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.

kwargsdict, optional

Passed to xarray.apply_ufunc