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)

ELKHMISSI/RSDK documentation built on March 24, 2022, 10:15 p.m.