circul {gallery}R Documentation

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)

Arguments

v

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

Value

a circulant matrix whose first row is the vector v


[Package gallery version 1.0.0 Index]