-
#include "tensorstore/index_space/index_domain.h" -
Result<IndexDomain<>>
tensorstore::MergeIndexDomains(IndexDomainView<> a,
IndexDomainView<> b); Merges two index domains.
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].For each lower/upper bound of each dimension
i, eitheraandbhave the same bound (including implicit bit), or at least one of the bounds is implicit and infinite.
In the merged domain, non-empty labels take precedence, and explicit/finite bounds take precedence over implicit/infinite bounds.