perm_mat {RSDK}R 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)

[Package RSDK version 1.0.1 Index]