-
#include "tensorstore/index_interval.h"
-
static constexpr bool
tensorstore::IndexInterval::ValidSized(Index inclusive_min,
Index size); Returns
true
ifinclusive_min
andsize
specify a valid interval.- Returns:¶
inclusive_min >= -kInfIndex && size >= 0 && size <= kInfSize && inclusive_min<kInfIndex && inclusive_min <= kInfIndex + 1 - size && inclusive_min + size> - kInfIndex + 1
.