#13136: The Equivalence of Linear Codes
-----------------------------+----------------------------------------------
Reporter: okazymyrov | Owner: wdj
Type: defect | Status: new
Priority: minor | Milestone: sage-5.1
Component: coding theory | Keywords: is_permutation_equivalent
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------------------------
The are exist bug in is_permutation_equivalent for LinearCode.
If dimension of code not equals to rank of a generating matrix over GF(2),
then
{{{
Traceback (most recent call last):
File "./Main.py", line 26, in <module>
cr_is_CCZ_equivalent(F='(a^5 + a^4 + a^3 + a^2)*y^32 + a^4*y^16 + (a^3
+ 1)*y^8 + (a^5 + a^4 + a^2 + a)*y^4 + (a^5 + a^4 + a^3 + 1)*y^2 + (a^3 +
a^2)*y',G='a^4*y^32 + (a^5 + a^4 + a^3 + a^2)*y^16 + (a^5 + a^4 + a^3 +
1)*y^8 + (a^3 + a^2 + 1)*y^4 + (a^4 + a^3 + a)*y^2 + (a^5 + a^3 + a^2 + a
+ 1)*y')
File "./Main.py", line 19, in cr_is_CCZ_equivalent
return CF.is_permutation_equivalent(CG)
File "/home/hamsin/bin/sage/local/lib/python2.7/site-
packages/sage/misc/decorators.py", line 687, in wrapper
return func(*args, **kwds)
File "/home/hamsin/bin/sage/local/lib/python2.7/site-
packages/sage/coding/linear_code.py", line 1575, in
is_permutation_equivalent
CW1 = MS(self.list())
File "/home/hamsin/bin/sage/local/lib/python2.7/site-
packages/sage/matrix/matrix_space.py", line 543, in __call__
return self.matrix(entries, copy=copy, coerce=coerce, rows=rows)
File "/home/hamsin/bin/sage/local/lib/python2.7/site-
packages/sage/matrix/matrix_space.py", line 1372, in matrix
return self.__matrix_class(self, entries=x, copy=copy, coerce=coerce)
File "matrix_mod2_dense.pyx", line 257, in
sage.matrix.matrix_mod2_dense.Matrix_mod2_dense.__init__
(sage/matrix/matrix_mod2_dense.c:3141)
IndexError: The vector of entries has the wrong length.
}}}
The example in the attachments.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13136>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.