Invariants
- C . i: Code, RngIntElt -> ModTupRngElt
- Name(C, i): Code, RngIntElt -> ModTupRngElt
Given a code \(C\) and a positive integer \(i\), return the \(i\)-th generator of \(C\).
- AmbientSpace(C): Code -> ModTupRng
The ambient space of the code \(C\), i.e., the generic \(R\)-space \(V\) in which \(C\) is contained.
- Basis(C): Code -> [ ModTupRngElt ]
The basis of the linear code \(C\), returned as a sequence of elements of \(C\).
- Generators(C): Code -> { ModTupRngElt }
The generators for the linear code \(C\), returned as a set.
- GeneratorMatrix(C): Code -> ModMatRngElt
The generator matrix for the linear code \(C\). This gives a unique canonical generating set for the code.
- Generic(C): Code -> Code
Given a length \(n\) code \(C\) over a ring \(R\), return the generic \((n, \#R^n, 1)\) code in which \(C\) is contained.
- PseudoDimension(C): Code -> RngIntElt
- NumberOfGenerators(C): Code -> RngIntElt
- Ngens(C): Code -> RngIntElt
The number of generators (which equals the pseudo-dimension \(k\)) of the linear code \(C\).
- ParityCheckMatrix(C): Code -> ModMatRngElt
The parity check matrix for the code \(C\), which can be defined as the canonical generator matrix of the dual of \(C\).