Skip to main content

residual

Function residual 

Source
pub fn residual(
    a: &CsrMatrix<f64>,
    x: &[f64],
    b: &[f64],
) -> Result<Vec<Interval>, VerifyError>
Expand description

Algorithm V for an f64 solution: R_i ∋ a_iᵀx − b_i (invariant V1 of Chapter 11.10), for the stored f64 values. A row whose bound cannot be established (overflow, a NaN or an infinity in the data) gets Interval::ENTIRE.

§Errors

VerifyError::Dimension.

§Panics

If a violates the invariants of its type (a column index out of range).