circul: Create circulant matrix

View source: R/circul.R

circulR 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


tXiao95/gallery documentation built on Aug. 30, 2024, 6:14 a.m.