pub fn root<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>,
Compute root
This is a binary elementwise operation.
arg1
is an argument that implements an internal trait Convertable
.arg2
is an argument that implements an internal trait Convertable
.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.
An Array with results of the binary operation.
If shape/dimensions of arg1
and arg2
are same, the value of batch
parameter has no effect.
If shape/dimensions of arg1
and arg2
are different, the value of batch
has to be set to true
. In this case, the shapes of arg1
and arg2
have to satisfy the following criteria:
arg1
and arg2
along a given dimension/axisarg1
or arg2
along a given dimension/axisThe trait Convertable
essentially translates to a scalar native type on rust or Array.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4