Test of nnz method, of class VecWithNorm.
()
| 218 | * Test of nnz method, of class VecWithNorm. |
| 219 | */ |
| 220 | @Test |
| 221 | public void testNnz() |
| 222 | { |
| 223 | System.out.println("nnz"); |
| 224 | |
| 225 | assertEquals(x.nnz(), xNrmd.nnz()); |
| 226 | x.set(5, 0.0); |
| 227 | xNrmd.set(5, 0.0); |
| 228 | assertEquals(x.nnz(), xNrmd.nnz()); |
| 229 | } |
| 230 | |
| 231 | |
| 232 | } |