Skip to main content

isclose_broadcast

Function isclose_broadcast 

Source
pub fn isclose_broadcast<T, D1, D2>(
    a: &Array<T, D1>,
    b: &Array<T, D2>,
    rtol: T,
    atol: T,
    equal_nan: bool,
) -> Result<Array<bool, IxDyn>, FerrayError>
where T: Element + Float, D1: Dimension, D2: Dimension,
Expand description

Cross-rank broadcasting close-within-tolerance test.

Same |a - b| <= atol + rtol * |b| semantics as isclose, but accepts inputs with distinct ranks. Returns Array<bool, IxDyn>.