@geomstats.tests.np_and_autograd_only
def test_fit_inverse_transform_matrix(self):
    X = self.spd.random_point(n_samples=5)
    tpca = TangentPCA(metric=self.spd_metric)
    tangent_projected_data = tpca.fit_transform(X)
    result = tpca.inverse_transform(tangent_projected_data)
    expected = X
    self.assertAllClose(result, expected, atol=1e-06)
@geomstats.tests.np_and_autograd_only
def test_fit_inverse_transform_matrix(self):
    X = self.spd.random_point(n_samples=5)
    tpca = TangentPCA(metric=self.spd_metric)
    tangent_projected_data = tpca.fit_transform(X)
    result = tpca.inverse_transform(tangent_projected_data)
    expected = X
    self.assertAllClose(result, expected, atol=1e-06)