ClikaRT::ops::bitwise_and
function
bitwise_and()
Tensor bitwise_and(Tensor a, ScalarOrTensor other)
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 a's dtype). Shapes broadcast per the standard rules; the output carries the shared dtype. The other bitwise ops state "dtype law as `bitwise_and`" instead of restating this.
Returns: the broadcast-shaped AND at the operands' shared dtype.
Throws
-
ClikaRT::Error: (INVALID_ARGUMENT) when the operand dtypes differ, for a floating-point operand, or broadcast-incompatible shapes.auto masked = ClikaRT::ops::bitwise_and(flags, 0x0F);
Declared in ClikaRT/compute/ops.h, line 1572