spam (version 2.5-1)

circulant: Create Circulant Matrices

Description

Creates a circulant matrix in spam format.

Usage

circulant.spam(x, n = NULL, eps = getOption("spam.eps"))

Arguments

x

the first row to form the circulant matrix or a list containing the indices and the nonzero values.

n

if x is a list, the dimension of the matrix.

eps

A tolerance parameter: elements of x such that abs(x) <= eps set to zero. Defaults to eps = getOption("spam.eps")

Value

The circulant matrix in spam format.

See Also

circulant from package magic, toeplitz.spam

Examples

Run this code
# NOT RUN {
circulant.spam(c(1,.25,0,0,0))
# }

Run the code above in your browser using DataLab