pangolin.interface.RVLike#
- pangolin.interface.RVLike#
An RV or a numeric array-like value. Graph-building functions accept these values and turn non-RV arguments into constant RVs.
RVLikeis a static type alias, not a runtime-checkable class. Useir.RVto check whether a result is an RV:>>> from pangolin import interface as pi, ir >>> isinstance(pi.normal(0, 1), ir.RV) True >>> isinstance(pi.normal([0, 1], 1), ir.RV) True >>> x = pi.normal(0, 1) >>> isinstance(pi.normal(x, 1), ir.RV) True