diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/crates/candelabra/src/cost/fit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crates/candelabra/src/cost/fit.rs b/src/crates/candelabra/src/cost/fit.rs index 80515ab..8e09e1c 100644 --- a/src/crates/candelabra/src/cost/fit.rs +++ b/src/crates/candelabra/src/cost/fit.rs @@ -129,7 +129,7 @@ fn vandermonde( for (row, x) in xs.iter().enumerate() { // First column is all 1s so skip - for col in 1..=3 { + for col in 1..COEFFICIENTS { mat[(row, col)] = x.powi(col as i32); } } |