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. More...
 
array operator~ () const
 Performs a bitwise not operation on the values of the array. More...
 

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]out~, bitwise NOT
[in]ininput array
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given

◆ operator~()

array operator~ ( ) const

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

Returns
an array with inverted values