(self, points)
return np.where(out_of_bounds, -1, 0)
Find the simplices containing the given points.

        Parameters
        ----------
        points : ndarray
            2D array of coordinates of points for which to find simplices.

        Returns
        -------
        indices : ndarray
            Indices of simplices containing each point. Points outside the
            triangulation get the value -1.
Find the simplices containing the given points.
Find the simplices containing the given points .
def find_simplex(self, points):
        """Find the simplices containing the given points.

        Parameters
        ----------
        points : ndarray
            2D array of coordinates of points for which to find simplices.

        Returns
        -------
        indices : ndarray
            Indices of simplices containing each point. Points outside the
            triangulation get the value -1.

        """
        points = points.squeeze()
        out_of_bounds = points > self._max
        out_of_bounds |= points < self._min
        return np.where(out_of_bounds, -1, 0)
def find_simplex ( self , points ) : points = points . squeeze ( ) out_of_bounds = points > self . _max out_of_bounds |= points < self . _min return np . where ( out_of_bounds , - 1 , 0 )