Skip to main content

residual_dd

Function residual_dd 

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

b − A x in double-double, not rigorous (step P1): each component within ≈ k u² relative to Σ|a_ij x_j| + |b_i|, k the number of entries of the row (kernels::dot_mixed, then one subtraction). Note the sign: the interval residuals of this module enclose A x − b.

§Errors

VerifyError::Dimension.

§Panics

If a violates the invariants of its type.