tensorstore.IndexInterval

class tensorstore.IndexInterval

Represents an interval of index values, with support for +/-inf bounds.

Methods

__init__(self)

Constructs an unbounded interval.

__init__(self, size)

Constructs the interval [0, size).

__init__(self, inclusive_min, exclusive_max)

Constructs a half-open interval.

__init__(self, inclusive_min, inclusive_max)

Constructs a closed interval.

__init__(self, inclusive_min, size)

Constructs a sized interval.

Attributes

empty: bool

Returns True if size is zero.

exclusive_max: int

Returns the exclusive upper bound of the interval

exclusive_min: int

Returns the exclusive lower bound of the interval

finite: bool

Returns True if the interval is finite.

inclusive_max: int

Returns the inclusive upper bound of the interval

inclusive_min: int

Returns the inclusive lower bound of the interval

size: int

Returns the size of the interval