'Return: x_, xcond.
x_ is an int array; xcond is a boolean array flagging values out of the
domain.'

def _process_quantiles(self, x, n, p):

    xx = np.asarray(x, dtype=np.int)
    if (xx.ndim == 0):
        raise ValueError('x    must    be    an    array.')
    if ((xx.size != 0) and (not (xx.shape[(-1)] == p.shape[(-1)]))):
        raise ValueError(('Size    of    each    quantile    should    be    size    of    p:    received    %d,    but    expected    %d.' % (xx.shape[(-1)], p.shape[(-1)])))
    cond = np.any((xx != x), axis=(-1))
    cond |= np.any((xx < 0), axis=(-1))
    cond = (cond | (np.sum(xx, axis=(-1)) != n))
    return (xx, cond)
