CASA Function: CyclicEncode
Encode using matrix multiplication.
Calling Sequence:
Parameters:
- a : list, vector
-
- C : casa/finite/Cyclic/BCH2
- The code used for encoding
Result:
- c : vector
- The coded message. c = a * G, where G is the generator matrix of the code C.
Description:
- Encodes a message using the 2 dimensional cyclic code C. Encoding is done by a simple matrix multiplication.
Examples:
> F4:= finiteField(4);
> C:=BCH2(3, 3, [4,0], F4);
> CyclicEncode([seq(1, i=1..C["k"])], C);
See Also:
[CASA]
[finiteField]
[BCH2]