torch_lgamma function

Lgamma

Lgamma

torch_lgamma(self)

Arguments

  • self: (Tensor) the input tensor.

lgamma(input, out=NULL) -> Tensor

Computes the logarithm of the gamma function on input.

\mboxouti=logΓ(\mboxinputi) \mbox{out}_{i} = \log \Gamma(\mbox{input}_{i})

Examples

if (torch_is_installed()) { a = torch_arange(0.5, 2, 0.5) torch_lgamma(a) }
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14