---
title: "bitwiseAND(_:_:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/bitwiseand(_:_:name:)"
---

# bitwiseAND(_:_:name:)

Returns the elementwise bitwise AND of binary representations of two integer tensors.

## Declaration

```swift
func bitwiseAND(_ primaryTensor: MPSGraphTensor, _ secondaryTensor: MPSGraphTensor, name: String?) -> MPSGraphTensor
```

## Parameters

- `primaryTensor`: The primary input tensor, must be of integer type.
- `secondaryTensor`: The secondary input tensor, must be of integer type.
- `name`: An optional string which serves as an identifier for the operation.

## Return Value

Return Value A valid MPSGraphTensor object containing the elementwise result of the applied operation.
