Test of isSymmetric method, of class Matrix.
()
| 246 | * Test of isSymmetric method, of class Matrix. |
| 247 | */ |
| 248 | @Test |
| 249 | public void testIsSymmetric_Matrix() |
| 250 | { |
| 251 | System.out.println("isSymmetric"); |
| 252 | Matrix A = Matrix.eye(5); |
| 253 | |
| 254 | assertTrue(Matrix.isSymmetric(A)); |
| 255 | |
| 256 | A.set(3, 4, 2.0); |
| 257 | A.set(4, 3, 2.0); |
| 258 | |
| 259 | assertTrue(Matrix.isSymmetric(A)); |
| 260 | |
| 261 | A.set(3, 2, 2); |
| 262 | |
| 263 | assertFalse(Matrix.isSymmetric(A)); |
| 264 | |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * Test of pascal method, of class Matrix. |
nothing calls this directly
no test coverage detected