pockit.base.autoupdate
class
AutoUpdate:
Utility class for managing dependencies between functions.
AutoUpdate(n_source: int, f_target: list[typing.Callable[[], NoneType]])
Arguments:
- n_source: Number of sources.
- f_target: List of target functions
def
set_dependency(self, i_target: int, i_sources: list[int]) -> None:
Set dependency of the target function with index i_target
on the
sources with indices i_sources
.