Copy an multiple elements from one vector into another

copy_elem2(dest, orig, inds)

Arguments

dest

destination row vector

orig

origin row vector

ind

C++ style index for the element to be copied

Value

copy an element of one row vector into another.