qp.typing.Bool¶
- Bool = AbstractArray((), bool, weak_type=True)¶
An
AbstractArrayofdtype=bool. On its own, it corresponds to a single scalar, but can be indexed into to create theAbstractArraywith arbitrary dimensions.>>> isinstance(np.array(False), qp.typing.Bool) True >>> qp.typing.Bool[4, 2] AbstractArray((4, 2), bool, weak_type=True) >>> qp.typing.Bool[-1, 10] AbstractArray((-1, 10), bool, weak_type=True)