Skip to main content

ClikaRT::ops::logical_and

function

logical_and()

Tensor logical_and(Tensor a, Tensor b)

Elementwise logical AND; non-Bool inputs read as element != 0 before the logic, and the output is always Bool (output as eq).

Returns: the broadcast-shaped Bool mask.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible.

Declared in ClikaRT/compute/ops.h, line 1713