torch.mvlgamma¶
-
torch.
mvlgamma
(input, p) → Tensor¶ Computes the multivariate log-gamma function) with dimension element-wise, given by
where and is the Gamma function.
All elements must be greater than , otherwise an error would be thrown.
- Parameters
Example:
>>> a = torch.empty(2, 3).uniform_(1, 2) >>> a tensor([[1.6835, 1.8474, 1.1929], [1.0475, 1.7162, 1.4180]]) >>> torch.mvlgamma(a, 2) tensor([[0.3928, 0.4007, 0.7586], [1.0311, 0.3901, 0.5049]])