# bitand

Version:

Computes the bitwise and of corresponding elements of two input arrays. For example, if a = 5 (101) and b = 9 (1001), bitand(a,b) = bitand(5,9) = 1 (0001).

## Syntax

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

## a

Scalar or array of any dimension of integers. If you use c = bitand(a, b), a is of type uint64. If you use c = bitand(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 = bitand(a, b), b is of type uint64. If you use c = bitand(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 and 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 = bitand(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported