vec_orc

Purpose

Returns a vector containing the result of performing a logical OR operation between a and the complement of b.

Syntax

d=vec_orc(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 OR operation between the corresponding element of a and the complement of the corresponding element of b.

Formula

d[0] = a[0] OR NOT (b[0])
d[1] = a[1] OR NOT (b[1])
d[2] = a[2] OR NOT (b[2])
d[3] = a[3] OR NOT (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)