GFADD {HadamardR}R Documentation

GFADD

Description

Addition table of GF(P^r)

Usage

GFADD(GFElem, p, r)

Arguments

GFElem

integer (Can be obtained by calling GFELEM function)

p

integer (a prime number)

r

integer (a positive integer)

Details

This function returns addition table of Galois field of order p^r. To use this function, Minimum function, elements of GF are required. Minimum functions are available in internal dataset. Elements can be generated using GFELEM function.

Value

A matrix of size p^r x p^r

Examples


p<-3
r<-2
cardin<-p^2
mf<-subset(HadamardR:::minimumfunction,HadamardR:::minimumfunction$s==cardin)
MF<-mf$coeff
GFElem<-GFELEM(p,r,MF)
GFADD(GFElem,p,r)
#Addition Table of GF(9)


[Package HadamardR version 1.0.0 Index]