Function auto_detect_sparsity

Source
pub fn auto_detect_sparsity<F, S>(
    fun: F,
    x: &ArrayView1<'_, f64>,
    num_samples: Option<usize>,
    threshold: Option<f64>,
) -> Result<CsrArray<f64>, OptimizeError>
where F: Fn(&ArrayView1<'_, f64>) -> S + Clone, S: Into<f64> + Clone,
Expand description

Auto-detect sparsity pattern by evaluating the function at multiple points