torch_lgamma: Lgamma

Description Usage Arguments lgamma(input, out=NULL) -> Tensor Examples

View source: R/gen-namespace.R

Description

Lgamma

Usage

1

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

1
2
3
4
5
if (torch_is_installed()) {

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

torch documentation built on Oct. 7, 2021, 9:22 a.m.