Reference index · List of Tcl commands

print_prime_polys

Name

print_prime_polys - Print the list of irreducible polynomials into a string.

Synopsis

print_prime_polys ?-gf gf? degree

Description

print_prime_polys is a convenience command for printing the list of irreducible polynomials. Thus, print_prime_polys -gf [gf $q] $n replaces the following code:

set str ""
foreach prime [list_prime_polys -gf [gf $q] $n] {
    set str "$str[print_poly $prime]\n"
}
return $str

Options

-gf gf

Galois field (Java reflection object), optional. Galois field, over which the polynomials are computed. If the parameter is omitted, the field previously set by set_default_gf is used.

degree

Integer. Degree of the polynomials to list.

Returns

String. List of polynomials as a string.

Examples

print_prime_polys -gf [gf 2] 3

Prints all irreducible polynomials of degree 3 over GF(2).