dyson.grids.grid#
Base class for grids.
Classes
|
Base class for grids. |
- class dyson.grids.grid.BaseGrid(points: Array, weights: Array | None = None, **kwargs: Any)[source]#
Bases:
ABCBase class for grids.
- set_options(**kwargs: Any) None[source]#
Set options for the solver.
- Parameters:
kwargs – Keyword arguments to set as options.
- abstractmethod evaluate_lehmann(lehmann: Lehmann, reduction: Reduction = Reduction.NONE, component: Component = Component.FULL) Dynamic[Any][source]#
Evaluate a Lehmann representation on the grid.
- Parameters:
lehmann – Lehmann representation to evaluate.
reduction – The reduction of the dynamic representation.
component – The component of the dynamic representation.
- Returns:
Lehmann representation, realised on the grid.
- property points: Array#
Get the points of the grid.
- Returns:
Points of the grid.
- property weights: Array#
Get the weights of the grid.
- Returns:
Weights of the grid.
- property uniformly_spaced: bool#
Check if the grid is uniformly spaced.
- Returns:
True if the grid is uniformly spaced, False otherwise.