pub fn add<T, D>(
a: &mut AutoDevice<T, D>,
b: &mut AutoDevice<T, D>,
) -> CoreResult<Box<dyn ArrayProtocol>>where
T: Clone + Send + Sync + 'static + Zero + Div<f64, Output = T> + Default + Mul<Output = T> + Add<Output = T>,
D: Dimension + RemoveAxis + 'static,
SliceInfo<[SliceInfoElem; 1], Dim<[usize; 1]>, Dim<[usize; 1]>>: SliceArg<D>,
SliceInfo<[SliceInfoElem; 2], Dim<[usize; 2]>, Dim<[usize; 2]>>: SliceArg<D>,
Expand description
Element-wise addition with automatic device selection.