def hash_array(array):
    """
    Hash an array for dictionary or set based lookup

    Parameters
    ----------
    array : np.ndarray
       The integer array to hash

    Returns
    ------
    key : integer
       The hash value of the array
    """
    return hash(array.tostring())
