Rust rustfmt

This commit is contained in:
Michael Neumann 2019-04-06 20:10:57 +02:00
parent 9ef1acacd8
commit c1b4498a65
2 changed files with 7 additions and 6 deletions

View File

@ -538,9 +538,10 @@ fn test_step5() {
#[test] #[test]
fn test_solve() { fn test_solve() {
let c = vec![250, 400, 350, // row 1 let c = vec![
250, 400, 350, // row 1
400, 600, 350, // row 2 400, 600, 350, // row 2
200, 400, 250 // row 3 200, 400, 250, // row 3
]; ];
let mut weights: WeightMatrix<i32> = WeightMatrix::from_row_vec(3, c); let mut weights: WeightMatrix<i32> = WeightMatrix::from_row_vec(3, c);
@ -607,7 +608,7 @@ fn test_solve_equal_rows2() {
fn test_solve_equal_rows5() { fn test_solve_equal_rows5() {
const N: usize = 5; const N: usize = 5;
let c = vec![ let c = vec![
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
]; ];
let mut weights: WeightMatrix<u32> = WeightMatrix::from_row_vec(N, c.clone()); let mut weights: WeightMatrix<u32> = WeightMatrix::from_row_vec(N, c.clone());

View File

@ -1,6 +1,6 @@
use crate::SquareMatrix;
use crate::WeightNum; use crate::WeightNum;
use crate::Weights; use crate::Weights;
use crate::SquareMatrix;
#[derive(Debug)] #[derive(Debug)]
pub struct WeightMatrix<T: WeightNum> { pub struct WeightMatrix<T: WeightNum> {