public boolean isSymmetric() {
        if (!isSquare()) {
            return false;
        } else {
            for (int i = 0; i < dim1; i++) {
                for (int j = i + 1; j < dim1; j++) {
                    if (Double.compare(get(i,j),get(j,i)) != 0) {
                        return false;
                    }
                }
            }
            return true;
        }
    }
@Test
    public void symmetricTest() {
        assertFalse(generateA().isSymmetric());
        assertFalse(generateB().isSymmetric());
        assertTrue(generateSymmetric().isSymmetric());
    }