diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-06 12:19:12 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-06 12:19:12 +0000 |
commit | 47219213464b2b66b8ed2f633518c630be6f0385 (patch) | |
tree | 4e3a4210046286b7facfdb360271284dc4ce74b0 | |
parent | ae5dcb875c85e6a48393d9695f1756db537aa1d8 (diff) |
fix outdated vandermonde matrix function
-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); } } |