-
#include "tensorstore/index_space/index_domain.h" -
Result<IndexDomain<>>
tensorstore::ConstrainIndexDomain(IndexDomainView<> a,
IndexDomainView<> b); Constrains index domain
abyb.If both
aandbare null, returns a null index domain.If exactly one of
aandbis non-null, returns the non-null domain.Otherwise,
aandbmust be compatible:For all dimension
ifor which!a.labels()[i].empty() && !b.labels()[i].empty(),a.labels[i] == b.labels[i].
In the resulting domain, if a bound in
ais both implicit and infinite, then the bound frombis used, otherwise the bound ofais used.