mlx.core.bitwise_and

目录

mlx.core.bitwise_and#

bitwise_and(a: scalar | array, b: scalar | array, stream: None | Stream | Device = None) array#

Element-wise bitwise and.

Take the bitwise and of two arrays with numpy-style broadcasting semantics. Either or both input arrays can also be scalars.

参数:
  • a (array) -- Input array or scalar.

  • b (array) -- Input array or scalar.

返回:

The bitwise and a & b.

返回类型:

array