You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sage: G = matrix(GF(2),[[0,0,0]])
sage: C = LinearCode(G)
sage: C.list()
[(0, 0, 0)]
sage: C.minimum_distance()
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
/home/wdj/.sage/temp/tinah/7902/_home_wdj__sage_init_sage_0.py in <module>()
/home/wdj/sagefiles/sage-4.1.rc1/local/lib/python2.6/site-packages/sage/coding/linear_code.pyc in minimum_distance(self, method)
1681 return ZZ(d)
1682 Gstr = "%s*Z(%s)^0"%(gapG, q)
-> 1683 return hamming_weight(min_wt_vec_gap(Gstr,n,k,F))
1684
1685 def module_composition_factors(self,gp):
/home/wdj/sagefiles/sage-4.1.rc1/local/lib/python2.6/site-packages/sage/coding/linear_code.pyc in min_wt_vec_gap(Gmat, n, k, F, method)
379 #print [gap.eval("v["+str(i+1)+"]") for i in range(n)]
380 all.append([v._matrix_(F),m._matrix_(F),int(dist)])
--> 381 ans = all[0]
382 for x in all:
383 if x[2]<ans[2] and x[2]>0:
IndexError: list index out of range
This should return a more useful error message:
Component: coding theory
Author: Sebastian Pancratz
Reviewer: Craig Citro
Merged: sage-4.3.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6486
The text was updated successfully, but these errors were encountered: