For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
erf
erf[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width] where dtype.is_floating_point()
Performs the elementwise Erf on a SIMD vector.
Constraints:
The type must be a floating-point type.
Parameters:
- dtype (
DType): Thedtypeof the input and output SIMD vector. - width (
Int): The width of the input and output SIMD vector.
Args:
- x (
SIMD[dtype, width]): SIMD vector to perform elementwise Erf on.
Returns:
SIMD[dtype, width]: The result of the elementwise Erf operation.