<< gf_division_table Operation tables gf_subtraction_table >>

Galois Fields >> Galois Fields > Operation tables > gf_multiplication_table

gf_multiplication_table

Multiplication table of a prime field

Syntax

T = gf_multiplication_table(F)

Arguments

F

A prime field GF(p) created by gf_create_field with n = 1.

T

The table: T(i, j) = (i - 1) × (j - 1), for i, j = 1 .. p; T is a p × p matrix.

Description

gf_multiplication_table returns the full table of the operation in GF(p), computed modulo p. Only prime fields (n = 1) are supported; an error is raised for n > 1.

Examples

F = gf_create_field(5, 1);
gf_multiplication_table(F)
// Result:
// 0 0 0 0 0
// 0 1 2 3 4
// 0 2 4 1 3
// 0 3 1 4 2
// 0 4 3 2 1

See also

History

VersionDescription
2.0.0

Refactoring of the function/toolbox.


Report an issue
<< gf_division_table Operation tables gf_subtraction_table >>