GFPrimeMult {HadamardR} | R Documentation |
GFPrimeMult GFPrimeMult creates Multiplication Table for GF(p), where p is a prime number
Description
GFPrimeMult GFPrimeMult creates Multiplication Table for GF(p), where p is a prime number
Usage
GFPrimeMult(p)
Arguments
p |
integer |
Details
If the elements of GF(p) are 0,1,..,p-1 then the (i,j)th element of matrix returned is multiplication of (i-1)th and (j-1)th elements. The multiplications are subjected to modulo p.
Value
Multiplication Table of GF(p) in the form of matrix of order p x p.
Examples
GFPrimeMult(5)
#[,1] [,2] [,3] [,4] [,5]
#[1,] 0 0 0 0 0
#[2,] 0 1 2 3 4
#[3,] 0 2 4 1 3
#[4,] 0 3 1 4 2
#[5,] 0 4 3 2 1
[Package HadamardR version 1.0.0 Index]