Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #19463: Review
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanncohen committed Oct 25, 2015
1 parent 9d9894a commit 6c8ea20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/coding/two_weight_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
REFERENCE:
.. [BJ03] I. Bouyukliev and S. Juriaan,
.. [BS03] I. Bouyukliev and J. Simonis,
Some new results on optimal codes over `F_5`,
Designs, Codes and Cryptography 30, no. 1 (2003): 97-111,
http://www.moi.math.bas.bg/moiuser/~iliya/pdf_site/gf5srev.pdf,
Expand Down Expand Up @@ -105,7 +105,7 @@
"111111222222333333444444000000111111000",
"223300133440112240112240133440123400110",
"402340414201142301132013234230044330401"),
'source': "From Bouyukliev and JuriaanFrom ([BJ03]_, Theorem 4.1)",
'source': "From Bouyukliev and JuriaanFrom ([BS03]_, Theorem 4.1)",
},
{
'K' : GF(3),
Expand Down Expand Up @@ -251,7 +251,7 @@
code['n'] = M.ncols()
code['k'] = M.nrows()
code['q'] = M.base_ring().cardinality()
_,w1,w2 = sorted(set([x.hamming_weight() for x in LinearCode(M)]))
w1,w2 = [w for w,f in enumerate(LinearCode(M).weight_distribution()) if w and f]
code['w1'] = w1
code['w2'] = w2

Expand Down

0 comments on commit 6c8ea20

Please sign in to comment.