GaloisField constructor
Implementation
GaloisField(int pp, this.size, this.base) {
aLogTbl = List<int>.filled(size, 0);
logTbl = List<int>.filled(size, 0);
int x = 1;
for (int i = 0; i < size; i++) {
aLogTbl[i] = x;
x = x * 2;
if (x >= size) {
x = (x ^ pp) & (size - 1);
}
}
for (int i = 0; i < size; i++) {
logTbl[aLogTbl[i]] = i;
}
}