lisa.utils.fixedpoint#

lisa.utils.fixedpoint(f, init, limit=None, raise_=True)[source]#

Find the fixed point of a function f with the initial parameter init.

Parameters:
  • limit (int or None) – If provided, set a limit on the number of iterations.

  • raise (bool) – If True, will raise a ValueError when limit iterations is reached without finding a fixed point. Otherwise, simply return the current value.