pangolin.interface.wishart#
- pangolin.interface.wishart(nu, scale)#
Create a matrix-valued Wishart RV (Wikipedia).
numust be scalar andscalemust be a square positive-definite matrix. The result has the same shape asscale. The IR validates the shapes; constraints on their values remain backend-level.Examples
>>> import pangolin.interface as pi >>> pi.wishart(5, [[1, 0], [0, 1]]).shape (2, 2)