(self, indices)
return simplices
Return the simplices corresponding to the simplex index.

        Parameters
        ----------
        indices : ndarray
            The indices of the simpleces

        Returns
        -------
        simplices : ndarray
            Each row consists of the indices of the simplex corners.
Return the simplices corresponding to the simplex index.
Return the simplices corresponding to the simplex index .
def simplices(self, indices):
        """Return the simplices corresponding to the simplex index.

        Parameters
        ----------
        indices : ndarray
            The indices of the simpleces

        Returns
        -------
        simplices : ndarray
            Each row consists of the indices of the simplex corners.

        """
        # Get the indices inside the unit rectangle
        unit_indices = np.remainder(indices, self.triangulation.nsimplex)
        simplices = self.unit_simplices[unit_indices].copy()

        # Shift indices to corresponding rectangle
        rectangles = np.floor_divide(indices, self.triangulation.nsimplex)
        corner_index = self.discretization.rectangle_corner_index(rectangles)

        if simplices.ndim > 1:
            corner_index = corner_index[:, None]

        simplices += corner_index
        return simplices
def simplices ( self , indices ) : # Get the indices inside the unit rectangle unit_indices = np . remainder ( indices , self . triangulation . nsimplex ) simplices = self . unit_simplices [ unit_indices ] . copy ( ) # Shift indices to corresponding rectangle rectangles = np . floor_divide ( indices , self . triangulation . nsimplex ) corner_index = self . discretization . rectangle_corner_index ( rectangles ) if simplices . ndim > 1 : corner_index = corner_index [ : , None ] simplices += corner_index return simplices