Interval.grid_samples Interval.grid_samples(size: int | Tuple[int, int] = 1) → ndarray[source] Returns samples chosen with grid sampling from the domain. Parameters: size (Union[int, Tuple[int, int]], optional, default=1) – Output shape. If the given shape is, e.g., (m, n), then m * n samples are drawn.