Arithmetic in Galois Fields

You can perform arithmetic operations on Galois arrays by using familiar MATLAB operators, listed in the table below. Whenever you operate on a pair of Galois arrays, both arrays must be in the same Galois field.

OperationOperator
Addition +
Subtraction -
Elementwise multiplication .*
Matrix multiplication *
Elementwise left division ./
Elementwise right division .\
Matrix left division /
Matrix right division \
Elementwise exponentiation .^
Elementwise logarithm log()
Exponentiation of a square Galois matrix by a scalar integer ^

Examples of these operations are in the sections that follow:


© 1994-2005 The MathWorks, Inc.