Skip to main content

compare

Function compare 

Source
pub fn compare(
    actual: &HostArray,
    expected: &HostArray,
    rtol: f64,
    atol: f64,
) -> Result<(), String>
Expand description

Compares two host arrays within a tolerance, describing the first difference.

ยงErrors

Returns a description of the first mismatch in shape, type, or value.