@sonney2k, the test crashes in this line. If I understood correctly, get_distance_matrix should output a matrix equivalent to calling CDistance->distance() for every possible pair of indices.