def test_jacobi_matrix_5(self):
     if self.writeData:
         J = gq.jacobi_matrix(gq.r_hermite(5))
         np.savez('data/test_jacobi_matrix_5.npz',J=J)
         
     data = helper.load_test_npz('test_jacobi_matrix_5.npz')
     J = data['J']
     np.testing.assert_almost_equal(gq.jacobi_matrix(gq.r_hermite(5)), J)
 def test_jacobi_matrix_5(self):
     gq.jacobi_matrix(gq.r_hermite(5))
 def test_jacobi_matrix_one_row_2(self):
     a = np.array([[2.0, 1.0]])
     np.testing.assert_almost_equal(gq.jacobi_matrix(a), 2.0)
Exemple #4
0
 def test_jacobi_matrix_5(self):
     data = helper.load_test_npz('test_jacobi_matrix_5.npz')
     J = data['J']
     np.testing.assert_equal(gq.jacobi_matrix(gq.r_hermite(5)), J)
Exemple #5
0
 def test_jacobi_matrix_one_row_2(self):
     a = np.array([[2.0, 1.0]])
     np.testing.assert_equal(gq.jacobi_matrix(a), 2.0)
 def test_jacobi_matrix_one_row_1(self):
     a = np.array([[0.0, 1.0]])
     np.testing.assert_equal(gq.jacobi_matrix(a), 0.0)
 def test_jacobi_matrix_5(self):
     gq.jacobi_matrix(gq.r_hermite(5))
 def test_jacobi_matrix_one_row_1(self):
     a = np.array([[0.0, 1.0]])
     np.testing.assert_almost_equal(gq.jacobi_matrix(a), 0.0)