Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


torch (version 0.8.1)

torch_polygamma: Polygamma

Description

Polygamma

Usage

torch_polygamma(n, input)

Arguments

n

(int) the order of the polygamma function

input

(Tensor) the input tensor.

polygamma(n, input, out=NULL) -> Tensor

Computes the nth derivative of the digamma function on input. n0 is called the order of the polygamma function.

ψ(n)(x)=d(n)dx(n)ψ(x)

Examples

Run this code
if (torch_is_installed()) {
if (FALSE) {
a = torch_tensor(c(1, 0.5))
torch_polygamma(1, a)
}
}

Run the code above in your browser using DataLab