aboutsummaryrefslogtreecommitdiff
path: root/src/crates
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-06 12:19:12 +0000
committerAria Shrimpton <me@aria.rip>2024-03-06 12:19:12 +0000
commit47219213464b2b66b8ed2f633518c630be6f0385 (patch)
tree4e3a4210046286b7facfdb360271284dc4ce74b0 /src/crates
parentae5dcb875c85e6a48393d9695f1756db537aa1d8 (diff)
fix outdated vandermonde matrix function
Diffstat (limited to 'src/crates')
-rw-r--r--src/crates/candelabra/src/cost/fit.rs2
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);
}
}