Function arrayfire::ge
[−]
[src]
pub fn ge<T, U>(arg1: &T, arg2: &U, batch: bool) -> Array where
T: Convertable,
U: Convertable,
Perform greater than equals
comparison operation
This is a binary elementwise 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
andarg2
can be either an Array or a value of rust integral type.
Return Values
An Array with results of the binary operation.
In the case of comparison operations such as the following, the type of output Array is DType::B8. To retrieve the results of such boolean output to host, an array of 8-bit wide types(eg. u8, i8) should be used since ArrayFire's internal implementation uses char for boolean.
Note
The trait Convertable
essentially translates to a scalar native type on rust or Array.