コード例 #1
0
ファイル: run_tests.py プロジェクト: vgucsd/eigency
 def test_storage_order1(self):
     x = np.array([[1., 2., 3., 4.], [5., 6., 7., 8.]])
     y = eigency_tests.function_filter1(x)
     # y is transposed
     assert_array_equal(x, y.transpose())
コード例 #2
0
ファイル: run_tests.py プロジェクト: hamza-tm/eigency
 def test_storage_order1(self):
     x = np.array([[1., 2., 3., 4.], [5., 6., 7., 8.]])
     y = eigency_tests.function_filter1(x)
     # y is transposed
     assert_array_equal(x, y.transpose())
コード例 #3
0
ファイル: run_tests.py プロジェクト: vgucsd/eigency
 def test_storage_order4(self):
     # Explicitly use F-storage order in numpy array
     x = np.array([[1., 2., 3., 4.], [5., 6., 7., 8.]], order='F')
     y = eigency_tests.function_filter1(x)
     assert_array_equal(x, y)
コード例 #4
0
ファイル: run_tests.py プロジェクト: hamza-tm/eigency
 def test_storage_order4(self):
     # Explicitly use F-storage order in numpy array
     x = np.array([[1., 2., 3., 4.], [5., 6., 7., 8.]], order='F')
     y = eigency_tests.function_filter1(x)
     assert_array_equal(x, y)