pangolin.interface.minimum#
- pangolin.interface.minimum(a, b)#
Create an RV by applying
pangolin.ir.Minimumto its parents.This function belongs to the default interface. Thus, all arguments must either be scalar or mutually broadcastable using simple broadcasting, unless changed within an
overload()block.- Parameters:
- Returns:
ir.RV – RV whose operation is
pangolin.ir.Minimumwhen all parents are scalar, or one or more nestedpangolin.ir.VMapoperations around that type when broadcasting is required. The operation has 2 parents.- Return type:
Examples
>>> import pangolin.interface as pi >>> x = pi.minimum(0.1, 0.2) >>> x RV(Minimum(), RV(Constant(0.1)), RV(Constant(0.2))) >>> x.shape () >>> y = pi.minimum([0.1, 0.1], 0.2) >>> y RV(VMap(Minimum(), [0, None], 2), RV(Constant([0.1,0.1])), RV(Constant(0.2))) >>> y.shape (2,)
Notes
Returns the smaller of the two values. If either value is NaN, the result is NaN.
See also