qp.typing.Float

Float = AbstractArray((), float64, weak_type=True)

An AbstractArray of dtype=float. 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.0), qp.typing.Float)
True
>>> qp.typing.Float[4, 2]
AbstractArray((4, 2), float64, weak_type=True)
>>> qp.typing.Float[-1, 10]
AbstractArray((-1, 10), float64, weak_type=True)