Skip to main content

function

logical_not

logical_not[simd_width: Int](x: SIMD[bool, simd_width]) -> SIMD[bool, $0]

Performs elementwise logical Not operation.

An element of the result SIMD vector will be True if the corresponding element in x is True, and False otherwise.

Parameters:

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

Args:

  • x (SIMD[bool, simd_width]): SIMD vector to perform the Not operation.

Returns:

A SIMD vector containing True if the corresponding element in x is True, otherwise False.