fix: iterate city positions by rows
1 files changed, 1 insertions(+), 1 deletions(-) M codes/tsp_hw01/src/tsp.rs
M codes/tsp_hw01/src/tsp.rs => codes/tsp_hw01/src/tsp.rs +1 -1
@@ 62,7 62,7 @@ where pub fn new(cities: OMatrix<f64, D, Const<2>>) -> Self { let dim = cities.shape_generic().0; - let cities = cities.column_iter() + let cities = cities.row_iter() .map(|position| TSPCity { point: Point::<f64, 2>::new(position[0], position[1]) } )