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