perm_mat: perm_mat()

View source: R/perm_mat.R

perm_matR Documentation

perm_mat()

Description

This function permutes the columns of a given matrix with a cyclic permutaion

Usage

perm_mat(a, v)

Arguments

a

A matrix

v

The length of the cyclic permutation

Value

A matrix permuted cyclically by v columns

Examples

perm_mat(a=diag(1,5),4)

RSDK documentation built on March 18, 2022, 5:08 p.m.