-
#include "tensorstore/index_interval.h" -
Result<IndexInterval>
tensorstore::GetAffineTransformDomain(IndexInterval interval,
Index offset,
Index divisor); Computes the largest possible domain such that the affine-transformed range is contained within
interval.Specifically, subtracts
offsetfrom the lower and upper bounds ofintervaland then divides the bounds bydivisor, rounding towards the interior of the interval.A bound of
-kInfIndexorkInfIndexis not affected by subtraction or division.