@Test
public void testCalDistanceMatrixMatrix() {

    FastDistanceMatrixData matrixData = initMatrixData();
    DenseMatrix res = distance.calc(matrixData, matrixData);
    double[] expect = new double[] {0.0, 5160.251, 5160.251, 0.0};
    double[] predict = res.getData();
    for (int i = 0; i < expect.length; i++) {
        Assert.assertEquals(expect[i], predict[i], 0.01);
    }
}