-
#include "tensorstore/index_interval.h"
-
Result<IndexInterval>
tensorstore::ShiftInterval(IndexInterval interval,
Index min_offset,
Index max_offset); -
Result<IndexInterval>
tensorstore::ShiftInterval(IndexInterval interval, Index offset); Adds an offset to the min and max bounds of an interval.
If
interval.inclusive_min() == -kInfIndex
, it is not shifted. Likewise, ifinterval.inclusive_max() == -kInfIndex
, it is also not shifted.