The dual code
of a linear code
over a finite field
is its orthogonal
complement with respect to the dot product,
If has dimension
, then
has dimension
and
.
The transpose of a generator
matrix for
is a parity check matrix for
. A linear code satisfying
is called self-dual
(MacWilliams and Sloane 1977).
For example, over the finite field with two elements, the linear code is its own dual code. Orthogonality here is
calculated in the finite field, so
.