diff options
Diffstat (limited to 'src/solvers/gpu')
-rw-r--r-- | src/solvers/gpu/mod.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/solvers/gpu/mod.rs b/src/solvers/gpu/mod.rs index e89f033..379416a 100644 --- a/src/solvers/gpu/mod.rs +++ b/src/solvers/gpu/mod.rs @@ -77,11 +77,19 @@ pub struct RowResult { impl RowResult { fn new(mut rows: Vec<u32>) -> Self { - rows.push(0); + //rows.push(0); rows.sort(); Self { rows } } fn output(&self) { - println!("{:?}", self.rows); + /*let s = self + .rows + .iter() + .fold(String::new(), |s, d| s + &d.to_string() + " "); + println!("{}", s);*/ + let i = self.rows[0]; + for r in self.rows.iter() { + println!("{}\t{}", i, r); + } } } |