Mojo function
abs
abs(x: ComplexSIMD[type, size]) -> SIMD[type, size]
Performs elementwise abs (norm) on each element of the complex value.
Args:
- x (
ComplexSIMD[type, size]
): The complex vector to perform absolute value on.
Returns:
The elementwise abs of x.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!