A high-performance general-purpose compute library

Evaluate the bitwise NOT of an array. More...

Functions

AFAPI af_err af_bitnot (af_array *out, const af_array in)
 C Interface to evaluate the bitwise NOT of an array.
 
array operator~ () const
 Performs a bitwise not operation on the values of the array.
 

Detailed Description

Evaluate the bitwise NOT of an array.

Note
This function supports integer only.

Function Documentation

◆ af_bitnot()

AFAPI af_err af_bitnot ( af_array out,
const af_array  in 
)

C Interface to evaluate the bitwise NOT of an array.

Parameters
[out]outresult of bitwise NOT
[in]ininput
Returns
AF_SUCCESS if the execution completes properly

◆ operator~()

array operator~ ( ) const

Performs a bitwise not operation on the values of the array.

Returns
an array with inverted values