# Ticket #12418: 12418_update.patch

File 12418_update.patch, 3.8 KB (added by dimpase, 8 years ago)

update to fix the remaining issues

• ## sage/coding/all.py

```# HG changeset patch
# User Dmitrii Pasechnik <dimpase@gmail.com>
# Date 1373147760 -10800
# Node ID 57a27638dd297c4d65ef8588764a504502d19b7e
# Parent  71260c4f7840a7527415e947a76a2e9901360206
patch update to fix laziness, wikipedia ref, one more doctest

diff --git a/sage/coding/all.py b/sage/coding/all.py```
 a from sage.misc.lazy_import import lazy_import from ag_code import ag_code from code_constructions import (permutation_action, from sd_codes import self_dual_codes_binary from delsarte_bounds import (Krawtchouk, delsarte_bound_hamming_space, delsarte_bound_additive_hamming_space) lazy_import("sage.coding.delsarte_bounds", ["Krawtchouk", "delsarte_bound_hamming_space", "delsarte_bound_additive_hamming_space"])
• ## sage/coding/delsarte_bounds.py

`diff --git a/sage/coding/delsarte_bounds.py b/sage/coding/delsarte_bounds.py`
 a #***************************************************************************** def Krawtchouk(n,q,l,i): """ Compute ``K^{n,q}_l(i)``, the Krawtchouk polynomial: see `en.wikipedia.org/wiki/Kravchuk_polynomials `_. Compute ``K^{n,q}_l(i)``, the Krawtchouk polynomial: see :wikipedia:`Kravchuk_polynomials`. It is given by .. math:: def _delsarte_LP_building(n, d, d_star, q, isinteger,  solver, maxc = 0): """ LP builder - common for the two functions; not exported. EXAMPLES:: sage: from sage.coding.delsarte_bounds import _delsarte_LP_building sage: _,p=_delsarte_LP_building(7, 3, 0, 2, False, "PPL") sage: p.show() Maximization: x_0 + x_1 + x_2 + x_3 + x_4 + x_5 + x_6 + x_7 Constraints: constraint_0: 1 <= x_0 <= 1 constraint_1: 0 <= x_1 <= 0 constraint_2: 0 <= x_2 <= 0 constraint_3: -7 x_0 - 5 x_1 - 3 x_2 - x_3 + x_4 + 3 x_5 + 5 x_6 + 7 x_7 <= 0 constraint_4: -7 x_0 - 5 x_1 - 3 x_2 - x_3 + x_4 + 3 x_5 + 5 x_6 + 7 x_7 <= 0 constraint_5: -21 x_0 - 9 x_1 - x_2 + 3 x_3 + 3 x_4 - x_5 - 9 x_6 - 21 x_7 <= 0 constraint_6: -21 x_0 - 9 x_1 - x_2 + 3 x_3 + 3 x_4 - x_5 - 9 x_6 - 21 x_7 <= 0 constraint_7: -35 x_0 - 5 x_1 + 5 x_2 + 3 x_3 - 3 x_4 - 5 x_5 + 5 x_6 + 35 x_7 <= 0 constraint_8: -35 x_0 - 5 x_1 + 5 x_2 + 3 x_3 - 3 x_4 - 5 x_5 + 5 x_6 + 35 x_7 <= 0 constraint_9: -35 x_0 + 5 x_1 + 5 x_2 - 3 x_3 - 3 x_4 + 5 x_5 + 5 x_6 - 35 x_7 <= 0 constraint_10: -35 x_0 + 5 x_1 + 5 x_2 - 3 x_3 - 3 x_4 + 5 x_5 + 5 x_6 - 35 x_7 <= 0 constraint_11: -21 x_0 + 9 x_1 - x_2 - 3 x_3 + 3 x_4 + x_5 - 9 x_6 + 21 x_7 <= 0 constraint_12: -21 x_0 + 9 x_1 - x_2 - 3 x_3 + 3 x_4 + x_5 - 9 x_6 + 21 x_7 <= 0 constraint_13: -7 x_0 + 5 x_1 - 3 x_2 + x_3 + x_4 - 3 x_5 + 5 x_6 - 7 x_7 <= 0 constraint_14: -7 x_0 + 5 x_1 - 3 x_2 + x_3 + x_4 - 3 x_5 + 5 x_6 - 7 x_7 <= 0 constraint_15: - x_0 + x_1 - x_2 + x_3 - x_4 + x_5 - x_6 + x_7 <= 0 constraint_16: - x_0 + x_1 - x_2 + x_3 - x_4 + x_5 - x_6 + x_7 <= 0 Variables: x_0 is a continuous variable (min=0, max=+oo) x_1 is a continuous variable (min=0, max=+oo) x_2 is a continuous variable (min=0, max=+oo) x_3 is a continuous variable (min=0, max=+oo) x_4 is a continuous variable (min=0, max=+oo) x_5 is a continuous variable (min=0, max=+oo) x_6 is a continuous variable (min=0, max=+oo) x_7 is a continuous variable (min=0, max=+oo) """ from sage.numerical.mip import MixedIntegerLinearProgram