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).
hypot
hypot[dtype: DType, width: Int, //](arg0: SIMD[dtype, width], arg1: SIMD[dtype, width]) -> SIMD[dtype, width] where dtype.is_floating_point()
Computes the hypot of the inputs.
Constraints:
The input 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:
- arg0 (
SIMD[dtype, width]): The first input argument. - arg1 (
SIMD[dtype, width]): The second input argument.
Returns:
SIMD[dtype, width]: The hypot of the inputs.