Skip to main content

nnls

Function nnls 

Source
pub fn nnls(a: &[Vec<f64>], b: &[f64]) -> Vec<f64>
Expand description

a is column-major: a[j] is the j-th column (length m, matching b’s length). Returns the n = a.len()-length non-negative solution.