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