1c880c79459a63c8e36f48966142aea56626818e,scipy/sparse/linalg/tests/test_matfuncs.py,TestExpM,test_padecases_dtype_sparse_complex,#TestExpM#,143
Before Change
def test_padecases_dtype_sparse_complex(self):
// float32 and complex64 lead to errors in spsolve/UMFpack
dtype = np.complex128
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=SparseEfficiencyWarning)
for scale in [1e-2, 1e-1, 5e-1, 1, 10]:
a = scale * speye(3, 3, dtype=dtype, format="csc")
e = exp(scale) * eye(3, dtype=dtype)
assert_array_almost_equal_nulp(expm(a).toarray(), e, nulp=100)
def test_logm_consistency(self):
random.seed(1234)
for dtype in [np.float64, np.complex128]:
for n in range(1, 10):
After Change
def test_padecases_dtype_sparse_complex(self):
// float32 and complex64 lead to errors in spsolve/UMFpack
dtype = np.complex128
for scale in [1e-2, 1e-1, 5e-1, 1, 10]:
a = scale * speye(3, 3, dtype=dtype, format="csc")
e = exp(scale) * eye(3, dtype=dtype)
with suppress_warnings() as sup:
sup.filter(SparseEfficiencyWarning,
"Changing the sparsity structure of a csc_matrix is expensive.")
assert_array_almost_equal_nulp(expm(a).toarray(), e, nulp=100)
def test_logm_consistency(self):
random.seed(1234)
for dtype in [np.float64, np.complex128]:
for n in range(1, 10):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: scipy/scipy
Commit Name: 1c880c79459a63c8e36f48966142aea56626818e
Time: 2017-07-10
Author: cdouglass256@gmail.com
File Name: scipy/sparse/linalg/tests/test_matfuncs.py
Class Name: TestExpM
Method Name: test_padecases_dtype_sparse_complex
Project Name: scipy/scipy
Commit Name: 1c880c79459a63c8e36f48966142aea56626818e
Time: 2017-07-10
Author: cdouglass256@gmail.com
File Name: scipy/sparse/linalg/tests/test_expm_multiply.py
Class Name: TestExpmActionInterval
Method Name: test_sparse_expm_multiply_interval
Project Name: scipy/scipy
Commit Name: 1c880c79459a63c8e36f48966142aea56626818e
Time: 2017-07-10
Author: cdouglass256@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: bf2c49078d1306382e4eb50b144d357ec039aee9
Time: 2017-07-15
Author: cdouglass256@gmail.com
File Name: scipy/optimize/tests/test_least_squares.py
Class Name: BaseMixin
Method Name: test_jac_options