Is there a fundamental difference between a matrix and a vector? If so, there has to be some documentation about it. (or it's simply a bug or I don't get it..)
Here what I've tried (documentation does it a bit more "difficult", but should be the same -- at least I hope so) http://www.sagemath.org/doc/html/const/node37.html C = HammingCode(2,GF(5)) v = matrix(GF(5),[[1,0,0,2,1,0]]) C.decode(v) works (at least no errors), but v = vector(GF(5),[1,0,0,2,1,0]) C.decode(v) says: TypeError: Gap produced error output Permutation: <expr> must be a positive integer (not a integer) executing $sage333:=(1, 0, 0, 2, 1, 0);; I can see the different braces in the output, but internally a 1xn/nx1 matrix should handled in some way the same as a vector. H --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---