[−][src]Function arrayfire::atan2
pub fn atan2<T, U>(
arg1: &T,
arg2: &U,
batch: bool
) -> Array<<<T as Convertable>::OutType as ImplicitPromote<<U as Convertable>::OutType>>::Output> where
T: Convertable,
U: Convertable,
<T as Convertable>::OutType: ImplicitPromote<<U as Convertable>::OutType>,
<U as Convertable>::OutType: ImplicitPromote<<T as Convertable>::OutType>,
Calculate atan2 of two Arrays
This is a binary elementwise operation.
Parameters
arg1is an argument that implements an internal traitConvertable.arg2is an argument that implements an internal traitConvertable.batchis 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 binary operation.
Important Notes
-
If shape/dimensions of
arg1andarg2are same, the value ofbatchparameter has no effect. -
If shape/dimensions of
arg1andarg2are different, the value ofbatchhas to be set totrue. In this case, the shapes ofarg1andarg2have to satisfy the following criteria:- Same number of elements in
arg1andarg2along a given dimension/axis - Only one element in
arg1orarg2along a given dimension/axis
- Same number of elements in
-
The trait
Convertableessentially translates to a scalar native type on rust or Array.