Description Usage Arguments Details Value References Examples
View source: R/circulant_mat.R
A matrix is said to be circulant if (i+1, j+1)th entry is equal to the (i, j)th entry. Thus, for such matrices, the initial row determines the complex matrix. Whenever i+1,j+1 exceeds the order, modulus operation is carried out.
1 | circulant_mat(x = NA)
|
x |
a vector to be used as intial row. |
circulant_mat performs construction of circulant matrices.
circulant matrix of order length of input vector.
Hedayat, A. and Wallis, W.D. (1978). Hadamard Matrices and Their Application.Ann. Stat., 6, 1184-1238.
1 2 3 4 5 6 7 8 9 10 11 12 | circulant_mat(c(1,1,-1,0))
# [,1] [,2] [,3] [,4]
#[1,] 1 1 -1 0
#[2,] 0 1 1 -1
#[3,] -1 0 1 1
#[4,] 1 -1 0 1
circulant_mat(c(5,9,-7,-2))
# [,1] [,2] [,3] [,4]
#[1,] 5 9 -7 -2
#[2,] -2 5 9 -7
#[3,] -7 -2 5 9
#[4,] 9 -7 -2 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.