Exemplo n.º 1
0
 def test_truncation_07(self):
     a = POD(method='svd', rank=0.8)
     a.fit(snapshots)
     assert a.singular_values.shape[0] == 1
Exemplo n.º 2
0
 def test_truncation_05(self):
     a = POD(method='randomized_svd', rank=3)
     a.fit(snapshots)
     assert a.singular_values.shape[0] == 3
Exemplo n.º 3
0
 def test_truncation_06(self):
     a = POD(method='correlation_matrix', rank=4)
     a.fit(snapshots)
     assert a.singular_values.shape[0] == 4
Exemplo n.º 4
0
 def test_modes(self):
     a = POD('svd')
     a.fit(snapshots)
     np.testing.assert_allclose(a.modes, modes)