Esempio n. 1
0
 def test_randomized_svd_old(self):
     pod = POD('randomized_svd', save_memory=False).fit(snapshots)
     snapshots_ = pod.expand(pod.reduce(snapshots))
     np.testing.assert_array_almost_equal(snapshots, snapshots_, decimal=4)
Esempio n. 2
0
 def test_correlation_matrix_old(self):
     pod = POD('correlation_matrix').fit(snapshots)
     snapshots_ = pod.expand(pod.reduce(snapshots))
     np.testing.assert_array_almost_equal(snapshots, snapshots_, decimal=3)
Esempio n. 3
0
 def test_correlation_matirix_savemem_old(self):
     pod = POD('correlation_matrix', save_memory=True).fit(snapshots)
     snapshots_ = pod.expand(pod.reduce(snapshots))
     np.testing.assert_array_almost_equal(snapshots, snapshots_, decimal=4)
Esempio n. 4
0
 def test_numpysvd_old(self):
     pod = POD('svd').fit(snapshots)
     snapshots_ = pod.expand(pod.reduce(snapshots))
     np.testing.assert_array_almost_equal(snapshots, snapshots_, decimal=4)