maximum

Function maximum 

Source
pub fn maximum<S1, S2, D, T>(
    a: &ArrayBase<S1, D>,
    b: &ArrayBase<S2, D>,
) -> Array<T, D>
where S1: Data<Elem = T>, S2: Data<Elem = T>, D: Dimension, T: Num + PartialOrd + Copy + Send + Sync,
Expand description

Compute the element-wise maximum of two arrays

This function uses parallel processing when available and appropriate for the input arrays.

§Arguments

  • a - First array
  • b - Second array

§Returns

  • Element-wise maximum

§Panics

  • If the arrays have different shapes