Given a code C, return the number of codewords belonging to C.
Name(C, i) : Code, RngIntElt -> ModTupRngElt
Given a code C and a positive integer i,
return the i-th generator of C.
The underlying ring (or alphabet) R of the code C.
The ambient space of the code C, i.e., the generic R-space V in which
C is contained.
The basis of the linear code C, returned as a sequence of elements of C.
The generators for the linear code C, returned as a set.
The generator matrix for the linear code C. This gives a unique
canonical generating set for the code.
Given a length n code C over a ring R, return the generic
(n, #Rn, 1) code in which
C is contained.
Given a code C, return the block length n of C.
NumberOfGenerators(C) : Code -> RngIntElt
Ngens(C) : Code -> RngIntElt
The number of generators (which equals the pseudo-dimension k) of the
linear code C.
The parity check matrix for the code C, which can be defined as
the canonical generator matrix of the dual of C.
A random codeword of the code C.
Given a length n linear code C, defined as a subspace
U of the n-dimensional space V, return U as a subspace
of V with basis corresponding to the rows of the
generator matrix for C.
Given a code C over a ring with cardinality q, return the information
rate of C, that is, the ratio Logq(#C)/n.
V2.28, 13 July 2023