Skip to content

Instantly share code, notes, and snippets.

ggrothendieck / leftShift.cpp
Last active May 5, 2019
Illustrates that a NumericVector is a pointer
View leftShift.cpp
* @title A NumericVector is Really a Pointer
* @author G. Grothendieck completing Michael Meyer's post at
* @license GPL (>= 2)
* @tags NumericVector pointer
* @summary Shows that a NumericVector is a pointer.
// To run: library(Rcpp); sourceCpp("leftShift.cpp")