Learn R Programming

gallery (version 1.0.0)

circul: Create circulant matrix

Description

Each row is obtained from the previous by cyclically permuting the entries one step forward. A special Toeplitz matrix in which diagonals "wrap around"

Usage

circul(v)

Value

a circulant matrix whose first row is the vector v

Arguments

v

first row of the matrix. If v is a scalar, then C = circul(1:v)