def solve(a, b): '''Solve equation a x = b ''' try: return _linalg.solve(a, b) except Exception, e: raise LinAlgError(e)