def get_cutpoints(self): linspaces = [np.linspace(l,h,n+1) for (l,h,n) in self.grid_desc] n = self.num_real_nodes() D = self.D points = np.empty((n,D)) return discretize.make_points(linspaces)
def get_cutpoints(self): N = self.num_nodes D = self.D points = np.empty((N,D)) points[:-1,:] = discretize.make_points(self.grids) points[-1,:] = np.nan return points