qp.typing.Int

Int = AbstractArray((), int64, weak_type=True)

An AbstractArray of dtype=int. On its own, it corresponds to a single scalar, but can be indexed into to create the AbstractArray with arbitrary dimensions.

>>> isinstance(np.array(2), qp.typing.Int)
True
>>> qp.typing.Int[4, 2]
AbstractArray((4, 2), int64, weak_type=True)
>>> qp.typing.Int[-1, 10]
AbstractArray((-1, 10), int64, weak_type=True)