reverse_vec: Reverse Armadillo Vector

View source: R/RcppExports.R

reverse_vecR Documentation

Reverse Armadillo Vector

Description

Reverses the order of an Armadillo Vector

Usage

reverse_vec(x)

Arguments

x

A column vector of length N

Details

Consider a vector x=[1,2,3,4,5], the function would output x=[5,4,3,2,1].

Value

x A column vector with its contents reversed.

Author(s)

JJB


simts documentation built on Aug. 31, 2023, 5:07 p.m.