darsia.AndersonAcceleration#
- class AndersonAcceleration(dimension=None, depth=0, restart=None)[source]#
Bases:
objectAnderson acceleration for fixed-point methods.
Initialize Anderson acceleration.
- Parameters:
- dimension
int,tuple[int] Dimension of the problem. If a tuple is given, the problem is assumed to be a tensor problem and the dimension is calculated as the product of the tuple entries.
- depth
int Depth of the acceleration. If 0, no acceleration is applied.
- restart
int Restart of the acceleration. If None, no restart is applied.
- dimension
Methods
reset()Reset Anderson acceleration.