tenferro-linalg 0.3.0

Linear algebra traced APIs, eager helpers, extension runtime, and optional AD rules for tenferro.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(super) mod cusolver;

#[cfg(test)]
mod tests;

fn library_search_paths(env_var: &str, default_paths: &[&str]) -> Vec<String> {
    if let Ok(val) = std::env::var(env_var) {
        val.split(':')
            .filter(|s| !s.is_empty())
            .map(String::from)
            .collect()
    } else {
        default_paths.iter().map(|s| s.to_string()).collect()
    }
}