darsia.AndersonAcceleration#

class AndersonAcceleration(dimension=None, depth=0, restart=None)[source]#

Bases: object

Anderson acceleration for fixed-point methods.

Initialize Anderson acceleration.

Parameters:
dimensionint, 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.

depthint

Depth of the acceleration. If 0, no acceleration is applied.

restartint

Restart of the acceleration. If None, no restart is applied.

Methods

reset()

Reset Anderson acceleration.

reset()[source]#

Reset Anderson acceleration.