()
| 55 | } |
| 56 | |
| 57 | fn create() -> (SparseVector, SparseVector) { |
| 58 | let mut a = SparseVector::new(10); |
| 59 | let mut b = SparseVector::new(10); |
| 60 | a.put(3, 0.5); |
| 61 | a.put(9, 0.75); |
| 62 | a.put(6, 0.11); |
| 63 | a.put(6, 0.0); |
| 64 | b.put(3, 0.6); |
| 65 | b.put(4, 0.9); |
| 66 | |
| 67 | (a, b) |
| 68 | } |