uvex_transients.phase_space.space.Space.grid#
- Space.grid(size: int | Sequence[int], bounds: ArrayLike | None = None) NDArray[float64][source]#
Lay out a regular grid of points, with the first axis varying slowest.
- Parameters:
- Returns:
The grid points, shape
(prod(size), ndim), in the order ofnumpy.meshgrid(..., indexing="ij")flattened, so that reshaping a column to size gives that axis laid out over the grid.- Return type:
- Raises:
ValueError – If size or bounds does not match the space.