hypot | Modular

Mojo function

hypot[dtype: DType, width: Int, //](arg0: SIMD[dtype, width], arg1: SIMD[dtype, width]) -> SIMD[dtype, width]

Computes the hypot of the inputs.

Constraints:

The input must be a floating-point type.

Parameters:

  • dtype (DType): The dtype of the input and output SIMD vector.
  • width (Int): The width of the input and output SIMD vector.

Args:

  • arg0 (SIMD): The first input argument.
  • arg1 (SIMD): The second input argument.

Returns:

SIMD: The hypot of the inputs.