From 47219213464b2b66b8ed2f633518c630be6f0385 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Wed, 6 Mar 2024 12:19:12 +0000 Subject: fix outdated vandermonde matrix function --- src/crates/candelabra/src/cost/fit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crates') 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); } } -- cgit v1.2.3