Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

7 results for “from:Petre Caraiani”

[Rcpp-devel] Rccp code with vector and matrix inputs and matrix output
Petre Caraiani · Mar 28, 2014 · rcpp-devel

Hello, The following code works well in R: attach(dataqtr) dataqtr <- data.table(dataqtr) setkeyv(dataqtr,c("gvkey","qtr")) vec_growth <- data.frame(0,0,0,0,0,0,0,0,0,0,0,0,0) vec_eps <- data.frame...

[Rcpp-devel] Using GSL in R with Rcpp
Petre Caraiani · Apr 2, 2014 · rcpp-devel

Hello! I am trying to run the example here: http://gallery.rcpp.org/articles/gsl-colnorm-example/ I get the following error: g++ -m64 -I"C:/R/R-30~1.3/include" -DNDEBUG -IC:/GSl-1.16/include -I"E...

[Rcpp-devel] Looping over the parameters of a function
Petre Caraiani · Apr 8, 2014 · rcpp-devel

Hello everybody, I have a code in C which computes the root of a function using the Brent algorithm. The code is attached below. I provided the full code but you can focus on the function definition and the main...

[Rcpp-devel] Fwd: Looping over the parameters of a function
Petre Caraiani · Apr 8, 2014 · rcpp-devel

I don't know how to change the parameters of the function. The Brent routine finds the root of a function depending just on x. I know how to pass a vector between R and C, but I want to...

[Rcpp-devel] Using GSL in R with Rcpp
Petre Caraiani · Apr 2, 2014 · rcpp-devel

It seems that I am able to run the example in RcppGSL-intro.pdf, section 6, as far as I use the 32 bits R version. So, should I just use cxxfunction, or is there another way to make sourceCpp...

[Rcpp-devel] Rccp code with vector and matrix inputs and matrix output
Petre Caraiani · Mar 31, 2014 · rcpp-devel

Hello everybody, Thanks for your suggestions. I used the cppFunction as follows: #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] NumericMatrix fun (NumericVector a, NumericVector b, NumericMatrix Am , int T ){ int nrow = Am.nrow(); int ncol = Am.ncol(); for (int...

[Rcpp-devel] Rccp code with vector and matrix inputs and matrix output
Petre Caraiani · Mar 28, 2014 · rcpp-devel

Thank you for your quick reply! I corrected the issue mentioned by you, but I get the same error. It must be a beginner's issue. The data is quite big, but this kind of output could be produced with...

Can't find what you're looking for? Try searching with Google .