Thanks to visit codestin.com
Credit goes to docs.rs

maxof

Function maxof 

Source
pub fn maxof<A, B>(
    lhs: &Array<A>,
    rhs: &Array<B>,
    batch: bool,
) -> Array<A::Output>
where A: ImplicitPromote<B>, B: ImplicitPromote<A>,
Expand description

Elementwise maximum operation of two Arrays

This is an element wise binary operation.

ยงImportant Notes

  • If shape/dimensions of lhs and rhs are same, the value of batch parameter has no effect.

  • If shape/dimensions of lhs and rhs are different, the value of batch has to be set to true. In this case, the shapes of lhs and rhs have to satisfy the following criteria:

    • Same number of elements in lhs and rhs along a given dimension/axis
    • Only one element in lhs or rhs along a given dimension/axis