rev_row_subset: Reverse Subset Row

Description Usage Arguments Details Value Author(s) Examples

View source: R/RcppExports.R

Description

Subsets the row by going from high indices to low (the reverse of the supported practice)

Usage

1

Arguments

x

A matrix of dimensions M x N

start

A unsigned int that indicates the starting row.

end

A unsigned int that indicates the ending row.

Details

Consider a vector x=[[1,2],[3,4]], the function would output x=[[3,4],[1,2]]. Start and end must be valid C++ matrix locations. (e.g. matrix rows start at 0 and not 1)

Value

x A matrix with matrix rows displayed in reversed order

Author(s)

JJB

Examples

1
2
x = matrix(c(1,2,3,4), nrow=2,byrow=TRUE)
rev_row_subset(x, 1, 0)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.