cycol: Create matrix 'A' whose columns repeat cyclically

View source: R/cycol.R

cycolR Documentation

Create matrix A whose columns repeat cyclically

Description

Returns an n-by-n matrix with cyclically repeating columns where one cycle consists of the columns defined by randn(n,k). Thus, the rank of matrix A cannot exceed k, and k must be scalar.

Usage

cycol(n, k, m = NULL)

Arguments

n

number of columns of matrix

k

upper limit of rank

m

number of rows of matrix

Value

Matrix whose columns repeat cyclically


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