Skip to main content

Mojo function

abs

abs(x: ComplexSIMD[dtype, size]) -> SIMD[dtype, size]

Performs elementwise abs (norm) on each element of the complex value.

Args:

  • x (ComplexSIMD): The complex vector to perform absolute value on.

Returns:

SIMD: The elementwise abs of x.

Was this page helpful?