perm_matVec: Vectorize matrix permutation

View source: R/RcppExports.R

perm_matVecR Documentation

Vectorize matrix permutation

Description

Permute rows and columns of a vectorized matrix

Usage

perm_matVec(vec, n, rand)

Arguments

vec

a vumeric matrix

n

number of columns of the original matrix

rand

a numeric vector of randomized column and rows indeces

Details

It's the equivalent of R m[rand, rand] function. Columns and rows indexatons are in R format.

Value

A vector

Author(s)

Sebastian Sosa.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.