[][src]Function arrayfire::sub

pub fn sub<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>, 

Subtraction of two Arrays

This is a binary elementwise 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