vec_not

Purpose

Returns a vector containing the result of a logical NOT operation on the given vector.

Syntax

d=vec_not(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector4double vector4double

Result value

The value of each element of the result is the result of a logical NOT operation of the corresponding element of a.

Formula

d[0] = NOT a[0]
d[1] = NOT a[1]
d[2] = NOT a[2]
d[3] = NOT a[3]

Example

a =  (-1.0, -2.0,  1.0,  2.0)
d: ( 1.0,  1.0, -1.0, -1.0)