---
title: "bitwiseAnd"
sidebar_label: "bitwiseAnd"
description: "Kotlin binding reference: bitwiseAnd."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[bitwiseAnd](bitwiseAnd.md)

# bitwiseAnd

[common]\
fun [bitwiseAnd](bitwiseAnd.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`bitwiseAnd(input: Tensor, other: Tensor)`: the `bitwise_and` operator. Elementwise bitwise AND; the dtype law the whole bitwise family shares: integer and Bool dtypes only, and BOTH operands must carry ONE dtype (no promotion; a mixed pair is refused typed; a scalar `other` adopts `input`'s dtype). Shapes broadcast per the standard rules; the output carries the shared dtype. The other bitwise ops state &quot;dtype law as `bitwise_and`&quot; instead of restating this.

[common]\
fun [bitwiseAnd](bitwiseAnd.md)(input: [Tensor](../Tensor/index.md), other: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Tensor](../Tensor/index.md)

`bitwiseAnd(input: Tensor, other: Double)`: the number form of `bitwise_and`, `other` as a scalar.