pub fn ridge_pinv_rel(a: &[f64], n: usize, rel: f64) -> Vec<f64>
ridge_pinv with the ridge factor given: λ = rel·mean(diag(AᵀA)).
ridge_pinv