This function computes the density of the (Inverse-) Wishart distribution.
dwishart_cpp(x, df, scale, log = FALSE, inv = FALSE)A numeric, the density value.
A matrix, a covariance matrix of dimension p x p.
An integer, the degrees of freedom.
Must be greater or equal p.
A matrix, the scale matrix of dimension p x p.
Must be a covariance matrix.
A logical, if TRUE the logarithm of the density value is
returned.
By default, log = FALSE.
A logical, if TRUE the density of the Inverse-Wishart
distribution is returned.
By default, inv = FALSE.
This function performs no input checks. See dwishart
for the version with input checks.