dyson.grids.grid#

Base class for grids.

Classes

BaseGrid(points[, weights])

Base class for grids.

class dyson.grids.grid.BaseGrid(points: Array, weights: Array | None = None, **kwargs: Any)[source]#

Bases: ABC

Base 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.

property uniformly_weighted: bool#

Check if the grid is uniformly weighted.

Returns:

True if the grid is uniformly weighted, False otherwise.

property separation: float#

Get the separation of the grid.

Returns:

Separation of the grid.

abstract property domain: str#

Get the domain of the grid.

abstract property reality: bool#

Get the reality of the grid.