Skip to contents

Element-wise complementary error function erfc(x) = 1 - erf(x).

Usage

prim_erfc(operand)

Arguments

operand

(arrayish)
Arrayish value of data type floating-point.

Value

arrayish
Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.

Implemented Rules

  • stablehlo

  • reverse

StableHLO

Lowers to stablehlo::hlo_erfc().

See also

Examples

x <- nv_array(c(-1, 0, 1))
prim_erfc(x)
#> AnvlArray
#>  1.8427
#>  1.0000
#>  0.1573
#> [ CPUf32{3} ]