0d3ec0d63eb93fd808d9d1eb274c6bbd15255671,scipy/sparse/tests/test_base.py,_TestCommon,test_add_dense,#_TestCommon#,711
Before Change
sum1 = self.dat + self.datsp
assert_array_equal(sum1, 2*self.dat)
sum2 = self.datsp + self.dat
assert_array_equal(sum2, 2*self.dat)
def test_sub_dense(self):
// subtracting a dense matrix to/from a sparse matrix
sum1 = 3*self.dat - self.datsp
After Change
sum2 = datsp + dat
assert_array_equal(sum2, dat + dat)
for dtype in self.supported_dtypes:
yield check, self.dat_dtypes[dtype], self.datsp_dtypes[dtype]
def test_sub_dense(self):
// subtracting a dense matrix to/from a sparse matrix
def check(dat, datsp):
// Behavior is different for bool.
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 11
Instances
Project Name: scipy/scipy
Commit Name: 0d3ec0d63eb93fd808d9d1eb274c6bbd15255671
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_add_dense
Project Name: scipy/scipy
Commit Name: 5c5c4fd6e350e144c52d84fd735ce445613e611b
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_radd
Project Name: scipy/scipy
Commit Name: 0d3ec0d63eb93fd808d9d1eb274c6bbd15255671
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestInplaceArithmetic
Method Name: test_idiv_scalar
Project Name: scipy/scipy
Commit Name: 0d3ec0d63eb93fd808d9d1eb274c6bbd15255671
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_sub_dense
Project Name: scipy/scipy
Commit Name: 0d3ec0d63eb93fd808d9d1eb274c6bbd15255671
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestInplaceArithmetic
Method Name: test_imul_scalar
Project Name: scipy/scipy
Commit Name: 0d3ec0d63eb93fd808d9d1eb274c6bbd15255671
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_add_dense
Project Name: scipy/scipy
Commit Name: 5c5c4fd6e350e144c52d84fd735ce445613e611b
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_mul_scalar
Project Name: scipy/scipy
Commit Name: 5c5c4fd6e350e144c52d84fd735ce445613e611b
Time: 2013-06-07
Author: blake.a.griffith@gmail.com
File Name: scipy/sparse/tests/test_base.py
Class Name: _TestCommon
Method Name: test_add