@geomstats.tests.np_and_autograd_only
def test_fit_matrix(self):
    expected = 2
    X = self.spd.random_point(n_samples=5)
    tpca = TangentPCA(metric=self.spd_metric, n_components=expected)
    tpca.fit(X)
    result = tpca.n_components_
    self.assertAllClose(result, expected)
@geomstats.tests.np_and_autograd_only
def test_fit_matrix(self):
    expected = 2
    X = self.spd.random_point(n_samples=5)
    tpca = TangentPCA(metric=self.spd_metric, n_components=expected)
    tpca.fit(X)
    result = tpca.n_components_
    self.assertAllClose(result, expected)