pub fn bitor<A, B>(
lhs: &Array<A>,
rhs: &Array<B>,
batch: bool,
) -> Array<A::Output>where
A: ImplicitPromote<B>,
B: ImplicitPromote<A>,Expand description
Elementwise OR(bit) operation of two Arrays
This is an element wise binary operation.
ยงImportant Notes
-
If shape/dimensions of
lhsandrhsare same, the value ofbatchparameter has no effect. -
If shape/dimensions of
lhsandrhsare different, the value ofbatchhas to be set totrue. In this case, the shapes oflhsandrhshave to satisfy the following criteria:- Same number of elements in
lhsandrhsalong a given dimension/axis - Only one element in
lhsorrhsalong a given dimension/axis
- Same number of elements in