def pinv(a, rcond=1e-15): '''Pseudo-inverse of array ''' try: return _linalg.calcPseudoInverse(a) except Exception, e: raise LinAlgError(e)