Skip to main content

Mojo function

atan2

atan2[dtype: DType, width: Int, //](y: SIMD[dtype, width], x: SIMD[dtype, width]) -> SIMD[dtype, width]

Computes the atan2 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:

  • ​y (SIMD): The first input argument.
  • ​x (SIMD): The second input argument.

Returns:

SIMD: The atan2 of the inputs.

Was this page helpful?