vec_nand

Purpose

Returns a vector containing the results of performing a logical NOT operation of the result of a logical AND operation between the given vectors.

Syntax

d=vec_nand(a, b)

Result and argument types

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

d a b
vector4double vector4double vector4double

Result value

The value of each element of the result is the result of a logical NOT operation of a logical AND operation between the corresponding elements of a and b.

Formula

d[0] = NOT (a[0] AND b[0])
d[1] = NOT (a[1] AND b[1])
d[2] = NOT (a[2] AND b[2])
d[3] = NOT (a[3] AND b[3])

Example

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