Re: [Rcpp-devel] Integrating RcppParallel and RcppEigen

2015-04-14 Thread Joshua Wiley
://elkhartgroup.com +1.260.673.5518 > On Apr 15, 2015, at 07:50, Dirk Eddelbuettel wrote: > > > On 15 April 2015 at 07:36, Joshua Wiley wrote: > | Thank you, that worked wonderfully. > > THis *clearly* calls for an Rcpp Gallery post as you evidently best the > 'fast

Re: [Rcpp-devel] Integrating RcppParallel and RcppEigen

2015-04-14 Thread Joshua Wiley
/ initialize with input and output > CVLM(const Eigen::VectorXd y, const Eigen::MatrixXd X, > Rcpp::NumericMatrix betamat) > : y(y), X(X), PQR(X), Pmat(PQR.colsPermutation()), r(PQR.rank()), > betamat(betamat) {} > > > > On Tue, Apr 14, 2015 at 4:41 AM, Joshua Wiley > wro

[Rcpp-devel] Integrating RcppParallel and RcppEigen

2015-04-14 Thread Joshua Wiley
Hi, I'm interested in combining faster linear model estimation via QR decompositions from RcppEigen with JJs new(er) RcppParallel package to do cross validation and bootstrapping on linear models. As a first step, I've been trying to merge the JSS paper on RcppEigen ( http://www.jstatsoft.org/v52

Re: [Rcpp-devel] function created from cxxfunction modifies input?

2012-07-07 Thread Joshua Wiley
; NumericVector res = clone(xx); > > int toggle = 0; > int tot = 100; > int max = 100; > [...] > > On Sun, Jul 8, 2012 at 1:20 AM, Joshua Wiley wrote: >> >> Hi, >> >> I am familiar with R but quite new to C++. I am reading a C++ >> textbook, so if thi

[Rcpp-devel] function created from cxxfunction modifies input?

2012-07-07 Thread Joshua Wiley
o me, because I do not think I even modify the input vector, I copy it into the numeric vector res and alter that. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/