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


gallery documentation built on Sept. 26, 2024, 5:07 p.m.