def test_distance_riemman(): old_dist = distance_riemann(m1.numpy_array, m2.numpy_array) m1.reset_fields() m2.reset_fields() new_dist = Distance.riemannian(m1, m2) return _get_state(old_dist, new_dist, "riemmanian")
def function(): covmat1 = CovMat.random(100) covmat2 = CovMat.random(100) a = Distance.euclidean(covmat1, covmat2) b = Distance.log_euclidean(covmat1, covmat2) c = Distance.log_determinant(covmat1, covmat2) d = Distance.riemannian(covmat1, covmat2) e = Distance.wasserstein(covmat1, covmat2) f = Distance.kullback(covmat1, covmat2) g = Distance.kullback_right(covmat1, covmat2) h = Distance.kullback_sym(covmat1, covmat2)