torch_erfc: Erfc

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

View source: R/gen-namespace.R

Description

Erfc

Usage

1
torch_erfc(self)

Arguments

self

(Tensor) the input tensor.

erfc(input, out=NULL) -> Tensor

Computes the complementary error function of each element of input. The complementary error function is defined as follows:

\mathrm{erfc}(x) = 1 - \frac{2}{√{π}} \int_{0}^{x} e^{-t^2} dt

Examples

1
2
3
4
if (torch_is_installed()) {

torch_erfc(torch_tensor(c(0, -1., 10.)))
}

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