Convert polynomial to integer in <code>0..q-1</code>
Examples
gf <- create_galois_field(4)
stopifnot(poly2int(gf$p, gf$n, c(0, 0)) == 0)
Convert polynomial to integer in <code>0..q-1</code>
gf <- create_galois_field(4)
stopifnot(poly2int(gf$p, gf$n, c(0, 0)) == 0)