mlx.core.erf

目錄

mlx.core.erf#

erf(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise error function.

\[\mathrm{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} \, dt\]
參數:

a (array) -- Input array.

回傳:

The error function of a.

回傳型別:

array