c0d2f8f73f25fc425a19608ddb306e42d1e94f5a,scipy/sparse/tests/test_base.py,_TestCommon,test_mean,#_TestCommon#,177
Before 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)
After Change
assert_almost_equal(dat.mean(axis=0), datsp.mean(axis=0))
assert_almost_equal(dat.mean(axis=1), datsp.mean(axis=1))
for dtype in self.supported_dtypes:
yield check, self.dat_dtypes[dtype], self.datsp_dtypes[dtype]
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scipy/scipy
Commit Name: c0d2f8f73f25fc425a19608ddb306e42d1e94f5a
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: dask/distributed
Commit Name: f16ee17bc9481f2d9e19479f390d4248fc7c83a3
Time: 2019-07-24
Author: mrocklin@gmail.com
File Name: distributed/tests/test_stress.py
Class Name:
Method Name: test_stress_scatter_death
Project Name: scipy/scipy
Commit Name: c0d2f8f73f25fc425a19608ddb306e42d1e94f5a
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