f8a349522c5d07b09d4825fa835c23ef456f991d,scipy/sandbox/multigrid/tests/test_relaxation.py,TestRelaxation,check_jacobi,#TestRelaxation#,40

Before Change


        assert_almost_equal(x,array([0.5,1.0,0.5]))

        N = 1
        A = spdiags([2*ones(N),-ones(N),-ones(N)],[0,-1,1],N,N).T
        x = arange(N).astype(numpy.float64)
        b = array([10])
        jacobi(A,x,b)
        assert_almost_equal(x,array([5]))

After Change


        assert_almost_equal(x,array([0.5,1.0,0.5]))

        N = 1
        A = spdiags([2*ones(N),-ones(N),-ones(N)],[0,-1,1],N,N,format="csr")
        x = arange(N).astype(numpy.float64)
        b = array([10])
        jacobi(A,x,b)
        assert_almost_equal(x,array([5]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: f8a349522c5d07b09d4825fa835c23ef456f991d
Time: 2008-01-07
Author: wnbell@localhost
File Name: scipy/sandbox/multigrid/tests/test_relaxation.py
Class Name: TestRelaxation
Method Name: check_jacobi


Project Name: scipy/scipy
Commit Name: 24fca1b872bdb7572f7bd6e22d17f68cf35a4d4b
Time: 2008-01-08
Author: matthew.brett@gmail.com
File Name: scipy/sandbox/multigrid/tests/test_relaxation.py
Class Name: TestRelaxation
Method Name: test_polynomial


Project Name: scipy/scipy
Commit Name: f8a349522c5d07b09d4825fa835c23ef456f991d
Time: 2008-01-07
Author: wnbell@localhost
File Name: scipy/sandbox/multigrid/tests/test_relaxation.py
Class Name: TestRelaxation
Method Name: check_polynomial


Project Name: scipy/scipy
Commit Name: 24fca1b872bdb7572f7bd6e22d17f68cf35a4d4b
Time: 2008-01-08
Author: matthew.brett@gmail.com
File Name: scipy/sandbox/multigrid/tests/test_relaxation.py
Class Name: TestRelaxation
Method Name: test_jacobi