Creates a circulant matrix in spam
format.
circulant.spam(x, n = NULL, eps = .Spam$eps)
the first row to form the circulant matrix or a list containing the indices and the nonzero values.
if x
is a list, the dimension of the matrix.
A tolerance parameter: elements of x
such that abs(x)
<= eps
set to zero. Defaults to eps = .Spam$eps
The circulant matrix in spam
format.
circulant
from package magic, toeplitz.spam
circulant.spam(c(1,.25,0,0,0))
Run the code above in your browser using DataLab