6a98e99911631e73fec45e504dc0d9295fada53e,scipy/sparse/linalg/tests/test_expm_multiply.py,TestExpmActionSimple,test_sparse_expm_multiply,#TestExpmActionSimple#,106

Before Change


        n = 40
        k = 3
        nsamples = 10
        for i in range(nsamples):
            A = scipy.sparse.rand(n, n, density=0.05)
            B = np.random.randn(n, k)
            observed = expm_multiply(A, B)
            expected = scipy.linalg.expm(A).dot(B)
            assert_allclose(observed, expected)

    def test_complex(self):
        A = np.array([
            [1j, 1j],
            [0, 1j]], dtype=complex)

After Change


        assert_allclose(observed, expected)

    def test_sparse_expm_multiply(self):
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", category=SparseEfficiencyWarning)
            np.random.seed(1234)
            n = 40
            k = 3
            nsamples = 10
            for i in range(nsamples):
                A = scipy.sparse.rand(n, n, density=0.05)
                B = np.random.randn(n, k)
                observed = expm_multiply(A, B)
                expected = scipy.linalg.expm(A).dot(B)
                assert_allclose(observed, expected)

    def test_complex(self):
        A = np.array([
            [1j, 1j],
            [0, 1j]], dtype=complex)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: 6a98e99911631e73fec45e504dc0d9295fada53e
Time: 2013-08-16
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/linalg/tests/test_expm_multiply.py
Class Name: TestExpmActionSimple
Method Name: test_sparse_expm_multiply


Project Name: scipy/scipy
Commit Name: 48e7f2a47b2f2a109e70718e2e3b290d3084481f
Time: 2017-04-20
Author: nikolay.mayorov@zoho.com
File Name: scipy/integrate/tests/test_ivp.py
Class Name:
Method Name: test_integration


Project Name: scipy/scipy
Commit Name: a335d5673ac18587e0ab0f780489a7717ceb795b
Time: 2013-08-16
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestFancyMultidimAssign
Method Name: test_fancy_indexing_multidim_set


Project Name: scipy/scipy
Commit Name: a6fc1a26496b3f424d3fced28efa4bba6f149bb4
Time: 2015-07-28
Author: n59_ru@hotmail.com
File Name: scipy/optimize/tests/test_least_squares.py
Class Name: BaseMixin
Method Name: test_rosenbrock


Project Name: scipy/scipy
Commit Name: b18df763c16c4fc1ca8852296218741f35285daf
Time: 2013-08-17
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/tests/test_stats.py
Class Name: TestPowerDivergence
Method Name: test_empty_cases


Project Name: scipy/scipy
Commit Name: a335d5673ac18587e0ab0f780489a7717ceb795b
Time: 2013-08-16
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestFancyIndexingAssign
Method Name: test_fancy_indexing_set


Project Name: biolab/orange3
Commit Name: 380d3d3fd172c9aba66f5613cbb30aac07a5bebc
Time: 2020-09-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/util.py
Class Name: Reprable
Method Name: _reprable_items


Project Name: scipy/scipy
Commit Name: 89ded38ab5d85cdf0b8fdd79aaed47064822cd22
Time: 2014-11-22
Author: pav@iki.fi
File Name: scipy/special/tests/test_data.py
Class Name:
Method Name: test_local


Project Name: scipy/scipy
Commit Name: 6a98e99911631e73fec45e504dc0d9295fada53e
Time: 2013-08-16
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/linalg/tests/test_expm_multiply.py
Class Name: TestExpmActionSimple
Method Name: test_sparse_expm_multiply