Exemple #1
0
 def __init__(self, **keywords):
     IterativeAlgorithm.__init__(
         self, a=1, b=1/np.sqrt(2), t=1/4, p=1, p_dtype=int,
         inplace_recursion=True, normal_stop_condition=
         MaxIterationStopCondition(10), **keywords)
Exemple #2
0
 def __init__(self, **keywords):
     IterativeAlgorithm.__init__(self, x_old=0, x=1, **keywords)
Exemple #3
0
 def __init__(self, **keywords):
     IterativeAlgorithm.__init__(
         self, a=1, b=1/np.sqrt(2), t=1/4, p=1, p_dtype=int,
         allocate_new_state=False, normal_stop_condition=
         MaxIterationStopCondition(10), **keywords)
Exemple #4
0
 def func(keywords, expected):
     a = IterativeAlgorithm(**keywords)
     assert_eq(a._get_suffix(), expected)