Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home3/gardeoi3/public_html/iamrandom/modules/book/book.module).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home3/gardeoi3/public_html/iamrandom/includes/common.inc).

Quick look ups

//  is the format for adding comments in Rcpp

int n= b.size();    //finds the length of a vector b

int m=B.nrow();  //finds the number of rows in a matrix

double x=runif(1)(0);  //gets one random Uniform(0,1);  runif returns a vector so we just use element (0).

pow(), not ^, for exponentiation.

sqrt() and exp()  work

for a function that returns nothing use   void func_name(int a){  return; }