pangolin.interface.Interface.cosh

Contents

pangolin.interface.Interface.cosh#

Interface.cosh(a)[source]#

Create an RV by applying pangolin.ir.Cosh to its parents.

All arguments must either be scalar or mutually broadcastable according to the broadcasting policy selected when constructing the interface or within an overload block.

Parameters:

a (RVLike) – parent 0.

Returns:

ir.RV – RV whose operation is pangolin.ir.Cosh when all parents are scalar, or one or more nested pangolin.ir.VMap operations around that type when broadcasting is required. The operation has 1 parent.

Return type:

RV

Examples

>>> pi = Interface()
>>> x = pi.cosh(0.1)
>>> x
RV(Cosh(), RV(Constant(0.1)))
>>> x.shape
()
>>> y = pi.cosh([0.1, 0.1])
>>> y
RV(VMap(Cosh(), [0], 2), RV(Constant([0.1,0.1])))
>>> y.shape
(2,)

See also

pangolin.ir.Cosh