Isolated Scipy dependent function in slinalg.py.