コード例 #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)
コード例 #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)
コード例 #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)
コード例 #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)