lisa.utils.fixedpoint#
- lisa.utils.fixedpoint(f, init, limit=None, raise_=True)[source]#
Find the fixed point of a function
f
with the initial parameterinit
.- Parameters:
limit (int or None) – If provided, set a limit on the number of iterations.
raise (bool) – If
True
, will raise aValueError
whenlimit
iterations is reached without finding a fixed point. Otherwise, simply return the current value.