6bd75d792e10eee01d47efc86f5994f9a1b019d0,scipy/sparse/tests/test_base.py,_TestCommon,test_mean,#_TestCommon#,158
Before Change
assert_array_equal(self.dat.mean(), self.datsp.mean())
assert_array_equal(self.dat.mean(axis=None), self.datsp.mean(axis=None))
assert_array_equal(self.dat.mean(axis=0), self.datsp.mean(axis=0))
assert_array_equal(self.dat.mean(axis=1), self.datsp.mean(axis=1))
def test_expm(self):
M = array([[1, 0, 2], [0, 0, 3], [-4, 5, 6]], float)
sM = self.spmatrix(M, shape=(3,3), dtype=float)
After Change
assert_array_equal(dat.mean(axis=None), datsp.mean(axis=None))
assert_almost_equal(dat.mean(axis=0), datsp.mean(axis=0))
assert_almost_equal(dat.mean(axis=1), datsp.mean(axis=1))
for dat, datsp in zip(self.dat_dtypes.values(),
self.datsp_dtypes.values()):
yield check, dat, datsp
def test_expm(self):
M = array([[1, 0, 2], [0, 0, 3], [-4, 5, 6]], float)
sM = self.spmatrix(M, shape=(3,3), dtype=float)
Mexp = scipy.linalg.expm(M)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: scipy/scipy
Commit Name: 6bd75d792e10eee01d47efc86f5994f9a1b019d0
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_mean
Project Name: arviz-devs/arviz
Commit Name: db7ff57c52538aa7d7d566ac83de51cf5365e8f8
Time: 2018-09-16
Author: ColCarroll@users.noreply.github.com
File Name: arviz/tests/test_diagnostics.py
Class Name: TestDiagnostics
Method Name: test_gelman_rubin
Project Name: scipy/scipy
Commit Name: 6bd75d792e10eee01d47efc86f5994f9a1b019d0
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_sum
Project Name: geomstats/geomstats
Commit Name: 5210177ed979a9b08000d0a37a21abe3ff823fec
Time: 2018-01-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_right_exp_and_log_from_id