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) -- 輸入陣列。

回傳值:

The error function of a.

回傳值型別:

array