torch_lgamma: Lgamma

View source: R/gen-namespace.R

torch_lgammaR Documentation

Lgamma

Description

Lgamma

Usage

torch_lgamma(self)

Arguments

self

(Tensor) the input tensor.

lgamma(input, out=NULL) -> Tensor

Computes the logarithm of the gamma function on input.

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

Examples

if (torch_is_installed()) {

a = torch_arange(0.5, 2, 0.5)
torch_lgamma(a)
}

torch documentation built on Oct. 24, 2022, 5:08 p.m.