def inv(a): '''Inverse of square array ''' try: return _linalg.calcInverse(a) except Exception, e: raise LinAlgError(e)