def __hash__(self):
    return self.__hash

def unwrap(self):
    """Returns the encapsulated ndarray.
            If the wrapper is "tight", a copy of the encapsulated ndarray is
            returned. Otherwise, the encapsulated ndarray itself is returned.
        """
if self.__tight:
    return array(self.__wrapped)
return self.__wrapped
Построение набора Python из матрицы numpy