[−][src]Function arrayfire::or
pub fn or<A, B>(lhs: &Array<A>, rhs: &Array<B>, batch: bool) -> Array<A::Output> where
A: ImplicitPromote<B>,
B: ImplicitPromote<A>, Elementwise logical or 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