コード例 #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)
コード例 #2
0
 def __init__(self, **keywords):
     IterativeAlgorithm.__init__(self, x_old=0, x=1, **keywords)
コード例 #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)
コード例 #4
0
 def func(keywords, expected):
     a = IterativeAlgorithm(**keywords)
     assert_eq(a._get_suffix(), expected)