mlx.core.bitwise_or

Contents

mlx.core.bitwise_or#

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

Element-wise bitwise or.

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

Parameters:
  • a (array) – Input array or scalar.

  • b (array) – Input array or scalar.

Returns:

The bitwise or``a | b``.

Return type:

array