Skip to main content

apply_binary

Function apply_binary 

Source
pub fn apply_binary<T, F, O, S1, S2, S3, D>(
    input1: &ArrayBase<S1, D>,
    input2: &ArrayBase<S2, D>,
    output: &mut ArrayBase<S3, D>,
    op: F,
) -> Result<(), &'static str>
where S1: Data<Elem = T>, S2: Data<Elem = T>, S3: Data<Elem = O> + DataMut, T: Clone + Send + Sync, O: Clone + Send + Sync, F: Fn(&T, &T) -> O + Send + Sync, D: Dimension,
Expand description

Helper function to apply a binary operation element-wise with broadcasting