multigammaln

paddle. multigammaln ( x: Tensor, p: int, name: str | None = None ) Tensor [source]

This function computes the log of multivariate gamma, also sometimes called the generalized gamma.

Parameters
  • x (Tensor) – Input Tensor. Must be one of the following types: float16, float32, float64, uint16.

  • p (int) – The dimension of the space of integration.

  • name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to api_guide_Name.

Returns

The values of the log multivariate gamma at the given tensor x.

Return type

out (Tensor)

Examples

>>> import paddle

>>> x = paddle.to_tensor([2.5, 3.5, 4, 6.5, 7.8, 10.23, 34.25])
>>> p = 2
>>> out = paddle.multigammaln(x, p)
>>> print(out)
Tensor(shape=[7], dtype=float32, place=Place(cpu), stop_gradient=True,
    [0.85704780  , 2.46648574  , 3.56509781  , 11.02241898 , 15.84497833 ,
        26.09257698 , 170.68318176])