mindspore.ops.mvlgamma
- mindspore.ops.mvlgamma(input, p)[source]
Compute the multivariate log-gamma function with dimension p element-wise. The mathematical calculation process of Mvlgamma is shown as follows:
where
and is the Gamma function.- Parameters
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> x = mindspore.tensor([[3, 4, 5], [4, 2, 6]], mindspore.float32) >>> y = mindspore.ops.mvlgamma(x, p=3) >>> print(y) [[2.694925 5.402975 9.140645] [5.402975 1.596312 13.64045]]