As a second follow-up: if you
a) use RcppArmadillo,
b) you also define
PKG_CPPFLAGS= -UNDEBUG
somewhere (I use ~/.R/Makevars) to suppress R's new -DNDEBUG
which otherwise turns debugging asserts off
then you get bounds checking from Armadillo on the normal (eg
Hi Marie,
Thanks for posting here.
On 13 April 2012 at 11:31, Marie Auger-Methe wrote:
| I am new to Rcpp, c++, and inline. I have created a simple test function
| which works some of the times but not all the times. It generally
Sign of a memory error writing past bounds...
| crashes when I
Hi,
I am new to Rcpp, c++, and inline. I have created a simple test function
which works some of the times but not all the times. It generally
crashes when I run it with a large sample size or after calling the
function multiple times. When it doesn't work, it crashes R completely
and so I ha