legate.core.Shape#
- class legate.core.Shape(obj: Shape | Collection[int])#
- __init__()#
Construct a Shape.
Attributes
Methods
__eq__(self, other)Return whether two shapes are equal.
__ge__(value, /)Return self>=value.
__getitem__(self, int idx)Returns the extent of a given dimension
__gt__(value, /)Return self>value.
__iter__(self)Return an iterator to the shapes extents.
__le__(value, /)Return self<=value.
__len__(self)Returns the number of dimensions of this shape
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__repr__(self)Return a human-readable representation of the shape.
__str__(self)Return a human-readable representation of the shape.