Learn R Programming

spam (version 1.2-1)

toeplitz: Create Toeplitz Matrices

Description

Creates symmetric and asymmetric Toeplitz matrices.

Usage

toeplitz.spam(x, y = NULL, eps = .Spam$eps)

Arguments

x
the first row to form the Toeplitz matrix.
y
for asymmetric Toeplitz matrices, this contains the first column.
eps
A tolerance parameter: elements of x such that abs(x) <= eps<="" code=""> set to zero. Defaults to eps = .Spam$eps.

Value

  • The Toeplitz matrix in spam format.

Details

The vector y has to be of the same length as x and its first element is discarded.

See Also

toeplitz, circulant.spam

Examples

Run this code
toeplitz.spam(c(1,.25,0,0,0))

Run the code above in your browser using DataLab