[−][src]Function arrayfire::gt
pub fn gt<T, U>(arg1: &T, arg2: &U, batch: bool) -> Array<bool> where
T: Convertable,
U: Convertable,
<T as Convertable>::OutType: ImplicitPromote<<U as Convertable>::OutType>,
<U as Convertable>::OutType: ImplicitPromote<<T as Convertable>::OutType>,
Perform greater than
comparison operation
This is a comparison operation.
Parameters
arg1
is an argument that implements an internal traitConvertable
.arg2
is an argument that implements an internal traitConvertable
.batch
is an boolean that indicates if the current operation is an batch operation.
Both parameters arg1
and arg2
can be either an Array or a value of rust integral
type.
Return Values
An Array with results of the comparison operation a.k.a an Array of boolean values.
Important Notes
-
If shape/dimensions of
arg1
andarg2
are same, the value ofbatch
parameter has no effect. -
If shape/dimensions of
arg1
andarg2
are different, the value ofbatch
has to be set totrue
. In this case, the shapes ofarg1
andarg2
have to satisfy the following criteria:- Same number of elements in
arg1
andarg2
along a given dimension/axis - Only one element in
arg1
orarg2
along a given dimension/axis
- Same number of elements in
-
The trait
Convertable
essentially translates to a scalar native type on rust or Array.