Test of increment method, of class ShiftedVec.
()
| 181 | * Test of increment method, of class ShiftedVec. |
| 182 | */ |
| 183 | @Test |
| 184 | public void testIncrement() |
| 185 | { |
| 186 | System.out.println("increment"); |
| 187 | ShiftedVec a = new ShiftedVec(a_base, shift_a); |
| 188 | |
| 189 | for(int i =0 ; i < a.length(); i++) |
| 190 | { |
| 191 | a.increment(i, (i+1)); |
| 192 | a_dense.increment(i, (i+1)); |
| 193 | assertEquals(a_dense.get(i), a.get(i), 1e-10); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Test of mutableAdd method, of class ShiftedVec. |