|
174 | 174 | from sage.arith.misc import is_prime_power
|
175 | 175 | from sage.arith.all import factorial
|
176 | 176 | from sage.functions.all import log, sqrt
|
177 |
| -from sage.misc.decorators import rename_keyword |
178 | 177 | from .delsarte_bounds import delsarte_bound_hamming_space, \
|
179 | 178 | delsarte_bound_additive_hamming_space
|
180 | 179 |
|
181 |
| -@rename_keyword(deprecation=6094, method="algorithm") |
182 | 180 | def codesize_upper_bound(n,d,q,algorithm=None):
|
183 | 181 | r"""
|
184 | 182 | Returns an upper bound on the code size.
|
@@ -237,7 +235,6 @@ def codesize_upper_bound(n,d,q,algorithm=None):
|
237 | 235 | sub = singleton_upper_bound(n,q,d)
|
238 | 236 | return min([eub,hub,pub,sub])
|
239 | 237 |
|
240 |
| -@rename_keyword(deprecation=6094, method="algorithm") |
241 | 238 | def dimension_upper_bound(n,d,q,algorithm=None):
|
242 | 239 | r"""
|
243 | 240 | Returns an upper bound for the dimension of a linear code.
|
@@ -296,7 +293,6 @@ def gilbert_lower_bound(n,q,d):
|
296 | 293 | ans=q**n/volume_hamming(n,q,d-1)
|
297 | 294 | return ans
|
298 | 295 |
|
299 |
| -@rename_keyword(deprecation=6094, method="algorithm") |
300 | 296 | def plotkin_upper_bound(n,q,d, algorithm=None):
|
301 | 297 | r"""
|
302 | 298 | Returns Plotkin upper bound.
|
@@ -332,7 +328,6 @@ def plotkin_upper_bound(n,q,d, algorithm=None):
|
332 | 328 | fact = int(fact) + 1
|
333 | 329 | return int(d/( d - t * fact)) * q**(n - fact)
|
334 | 330 |
|
335 |
| -@rename_keyword(deprecation=6094, method="algorithm") |
336 | 331 | def griesmer_upper_bound(n,q,d,algorithm=None):
|
337 | 332 | r"""
|
338 | 333 | Returns the Griesmer upper bound.
|
@@ -393,7 +388,6 @@ def griesmer_upper_bound(n,q,d,algorithm=None):
|
393 | 388 | return 0
|
394 | 389 |
|
395 | 390 |
|
396 |
| -@rename_keyword(deprecation=6094, method="algorithm") |
397 | 391 | def elias_upper_bound(n,q,d,algorithm=None):
|
398 | 392 | r"""
|
399 | 393 | Returns the Elias upper bound.
|
|
0 commit comments