except when boundary is None). This version includes a NaN value in
        the original array.
        g