Mojo function
atan2
atan2[type: DType, simd_width: Int, //](y: SIMD[type, simd_width], x: SIMD[type, simd_width]) -> SIMD[$0, $1]
Computes the atan2
of the inputs.
Constraints:
The input must be a floating-point type.
Parameters:
- βtype (
DType
): Thedtype
of the input and output SIMD vector. - βsimd_width (
Int
): The width of the input and output SIMD vector.
Args:
- βy (
SIMD[type, simd_width]
): The first input argument. - βx (
SIMD[type, simd_width]
): The second input argument.
Returns:
The atan2
of the inputs.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?