Esempio n. 1
0
 def test_symmetrize_hermitian(self):
     a = np.array([[1, 2j, 3j], [-2j, 4, 5j], [-3j, -5j, 6]])
     npt.assert_array_equal(smeftutil.symmetrize_2(a), a)
     b = np.array([[1, 2j, 3j], [0, 4, 5j], [0, 0, 6]])
     npt.assert_array_equal(smeftutil.symmetrize_2(b), a)
Esempio n. 2
0
 def test_symmetrize_symmetric(self):
     a = np.array([[1, 2, 3], [2, 4, 5], [3, 5, 6]])
     npt.assert_array_equal(smeftutil.symmetrize_2(a), a)
     b = np.array([[1, 2, 3], [0, 4, 5], [0, 0, 6]])
     npt.assert_array_equal(smeftutil.symmetrize_2(b), a)