Only raise umfpack warning if cg mode is used

This commit is contained in:
Juan Nunez-Iglesias
2013-10-04 15:21:50 +10:00
parent 547c0bb7d8
commit a15312e3c8
@@ -324,7 +324,7 @@ def random_walker(data, labels, beta=130, mode='bf', tol=1.e-3, copy=True,
"""
if UmfpackContext is None:
if UmfpackContext is None and mode == 'cg':
warnings.warn('SciPy was built without UMFPACK. Consider rebuilding '
'SciPy with UMFPACK, this will greatly speed up the '
'random walker functions. You may also install pyamg '