Create Circulant Matrices
circulant.Rd
Creates a circulant matrix in spam
format.
Usage
circulant.spam(x, n = NULL, eps = getOption("spam.eps"))
See also
circulant
from package magic, toeplitz.spam
Examples
circulant.spam(c(1,.25,0,0,0))
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 1.00 0.25 0.00 0.00 0.00
#> [2,] 0.00 1.00 0.25 0.00 0.00
#> [3,] 0.00 0.00 1.00 0.25 0.00
#> [4,] 0.00 0.00 0.00 1.00 0.25
#> [5,] 0.25 0.00 0.00 0.00 1.00
#> Class 'spam' (32-bit)