# bitor

Version:

Computes the bitwise or of corresponding elements of two input arrays. For example, if a = 3 (011) and b = 9 (1001), bitor(a,b) = bitor(3,9) = 11 (1011).

## Syntax

c = bitor(a, b)
c = bitor(a, b, d)

## a

Scalar or array of any dimension of integers. If you use c = bitor(a, b), a is of type uint64. If you use c = bitor(a, b, d), a is of type d. a and b must have the same shape.

## b

Scalar or array of any dimension of integers. If you use c = bitor(a, b), b is of type uint64. If you use c = bitor(a, b, d), b is of type d. a and b must have the same shape.

## d

Assumed data type of a and b. d is a string.

Name Description
'uint64'

uint64

'uint32'

uint32

'uint16'

uint16

'uint8'

uint8

'int64'

int64

'int32'

int32

'int16'

int16

'int8'

int8

## c

Bitwise or of a and b. c is an array of the same size as a and b.

A = [134, 45, 232];
B = [453, 32, 134];
C = bitor(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices