Thank you Dirk for the quick response;
and for noting the memory handling.
I am aware of it and there are other ways of obtaining a pointer to some
memory location. I used malloc/free to put focus on arma::mat copying data
during assignment and/or not able to use reference as class member.
Leaving
Steven,
In a case like this I would try to set up a fist minimal working example
using just plain C++, and no R. Once that works, try it with R.
For Armadillo, the docs at http://arma.sourceforge.net/docs.html#Mat are your
best shot. I presume you saw what it says about strict=true. Also, in
BTW, thanks Dirk for the further thoughts.
I also forgot to mention part of what I was getting at with discussing the
installation of newer version of GCC beyond what comes with Rtools (e.g. with
MinGW-builds) is that you somehow have to update the new path for this compiler
in addition to the
I wanted to thank Paul Johnson, Dirk Eddelbuettel, Gabor Grothendieck, and
Hadley Wickham for feedback on my post.
-Paul: I am excited that you find this helpful; I was hoping it might be when I
wrote it up.
-Dirk: Excellent suggestion. I will update the page to incorporate this.
-Gabor and Hadl
Hello,
I am having trouble creating arma::mat with external writeable auxiliary
memory as class member;
ie:
struct Example {
Example( double *ptr ){
// . see provided minimal working example
}
arma::mat ExtPtr; // this is what I would like to have
}
What is it that I am doing wron
Have you compiled Rcpp from source ?
If not, are you compiling with the same compiler that was used to
compile Rcpp.
The cran binary for Rcpp 0.10.6 was built with llvm-g++ wherehas
preseumably you are using clang now on Mavericks.
Please try compiling Rcpp from source.
Romain
Le 26/11/201
Hi,
I just got started using Rcpp after spending a fair amount of time working in
the two separately. I'm currently running into some errors with c++ code that
tries to use the matrix classes in Rcpp:
> > library(Rcpp)
> > cppFunction("int mwe() {NumericMatrix mat(1,1); return 0;}")
>
> Error
On 25 November 2013 at 07:50, Hadley Wickham wrote:
| It's worth noting that simply using Rstudio (which will automatically
| set up the paths for you), makes this process much simpler:
|
| 1. Install R
| 2. Install Rstudio
| 3. Install Rtools
| 4. install.packages("Rcpp")
Conditional on the use
It's worth noting that simply using Rstudio (which will automatically
set up the paths for you), makes this process much simpler:
1. Install R
2. Install Rstudio
3. Install Rtools
4. install.packages("Rcpp")
Hadley
On Sat, Nov 23, 2013 at 11:38 PM, Brian Templeton wrote:
> I ended up spending a
Alessandro,
If you are somewhat inexperienced with C++, I suggest reading Effective C++ by
Scott Meyers. It's easy to get lost in some of his explanations as they are
very detailed, but you can just follow his advice, and come back to them later.
Dale Smith, Ph.D.
Senior Financial Quantitative
10 matches
Mail list logo