fn
multigammaln
→Tensormultigammaln(a: Tensor, p: int)Logarithm of the multivariate gamma function .
Computes , the natural generalisation of
lgamma that appears in the normalising constants of the Wishart
and inverse-Wishart distributions over positive-definite matrices,
and in matrix-Bayes log-evidence formulas.
Parameters
aTensorReal argument; any floating-point dtype. Each entry must
satisfy for the function to be finite
(otherwise the underlying
lgamma returns inf).pintDimensionality of the matrix argument; must be a positive
integer.
Returns
Tensor element-wise over a, same shape
and dtype as a.
Notes
Definition:
For p = 1 this reduces to . Raises
ValueError if p < 1.
Examples
>>> import lucid
>>> from lucid.special import multigammaln
>>> multigammaln(lucid.tensor([3.0, 5.0]), p=2)
Tensor([1.7918, 5.4538])