Polygamma
Source:R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/wrapers.R
torch_polygamma.Rd
Polygamma
polygamma(n, input, out=NULL) -> Tensor
Computes the \(n^{th}\) derivative of the digamma function on input
.
\(n \geq 0\) is called the order of the polygamma function.
$$ \psi^{(n)}(x) = \frac{d^{(n)}}{dx^{(n)}} \psi(x) $$
Examples
if (torch_is_installed()) {
if (FALSE) {
a = torch_tensor(c(1, 0.5))
torch_polygamma(1, a)
}
}