Skip to contents

Element-wise digamma function (logarithmic derivative of the gamma function). You can also use digamma().

Usage

nv_digamma(operand)

Arguments

operand

(arrayish)
Operand.

Value

arrayish
Has the same shape and data type as the input.

See also

prim_digamma() for the underlying primitive.

Examples

x <- nv_array(c(0.5, 1, 2, 5))
digamma(x)
#> AnvlArray
#>  -1.9635
#>  -0.5772
#>   0.4228
#>   1.5061
#> [ CPUf32{4} ]