QPrimePower {HadamardR}R Documentation

QPrimePower QPrimePower creats the Quadratic residues of the prime number.

Description

QPrimePower QPrimePower creats the Quadratic residues of the prime number.

Usage

QPrimePower(cardin)

Arguments

cardin

integer

Details

The given input is prime power it retuns the matrix of order cardin. if the input is not prime number then it returns NULL.

Value

matrix of cardin x cardin

Examples

QPrimePower(9)
#      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
#[1,]    0    1   -1    1   -1    1   -1    1   -1
#[2,]    1    0    1   -1    1    1   -1   -1   -1
#[3,]   -1    1    0   -1    1   -1   -1    1    1
#[4,]    1   -1   -1    0    1   -1    1    1   -1
#[5,]   -1    1    1    1    0   -1    1   -1   -1
#[6,]    1    1   -1   -1   -1    0    1   -1    1
#[7,]   -1   -1   -1    1    1    1    0   -1    1
#[8,]    1   -1    1    1   -1   -1   -1    0    1
#[9,]   -1   -1    1   -1   -1    1    1    1    0
QPrimePower(36)
#NULL

[Package HadamardR version 1.0.0 Index]