Re: [Rcpp-devel] Speed of RCppEigen Cholesky decomposition on sparse matrix

2018-11-27 Thread Serguei Sokol
Le 26/11/2018 à 18:23, Hoffman, Gabriel a écrit : I am developing a statistical model and I have a prototype working in R code.  I make extensive use of sparse matrices, so the R code is pretty fast, but hoped that using RCppEigen to evaluate the log-likelihood function could avoid a lot of memor

[Rcpp-devel] Problems with Rcout

2018-11-27 Thread Barth Riley
Dear Rcppers I am encountering a problem with Rcout. Even with basic string output, when I run the function containing the call to Rcout, no output is generated. Here is a simple example of what I’m trying to do: // [[Rcpp::export]] void testFunc() { Rcpp::Rcout << "testFunc begins" <<

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 16:35, Barth Riley wrote: > > Dear Rcppers > > I am encountering a problem with Rcout. Even with basic string output, when I > run the function containing the call to Rcout, no output is generated. Here > is a simple example of what I’m trying to do: > > // [[Rcpp::export]

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Serguei Sokol
Le 27/11/2018 à 16:35, Barth Riley a écrit : Dear Rcppers I am encountering a problem with Rcout. Even with basic string output, when I run the function containing the call to Rcout, no output is generated. Here is a simple example of what I’m trying to do: // [[Rcpp::export]] void testFunc

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Barth Riley
Here is a more complete example. Note that I want to output text strings for debugging purposes as the code for treatAsVector = true is never executed. Barth NumericVector getValidCount(Rcpp::NumericMatrix m, bool treatAsVector) { Rcpp::Rcout << "getValidCount B

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 17:06, Barth Riley wrote: > > Here is a more complete example. Note that I want to output text strings for > debugging purposes as the code for treatAsVector = true is never executed. The contents of the function are irrelevant. If I compile and execute this in a clean ses

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Barth Riley
Thanks for your reply. No, I’m not calling this using parallelization, and to my knowledge at least I have not redirected stdout (how would I check this?). The function is meant to be called by another function, but I am testing it directly from the R console. Barth

Re: [Rcpp-devel] Speed of RCppEigen Cholesky decomposition on sparse matrix

2018-11-27 Thread Yixuan Qiu
This is really a brilliant observation! Best, Yixuan On Tue, Nov 27, 2018 at 9:34 AM Serguei Sokol wrote: > > Le 26/11/2018 à 18:23, Hoffman, Gabriel a écrit : > > I am developing a statistical model and I have a prototype working in R > > code. I make extensive use of sparse matrices, so the

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 17:22, Barth Riley wrote: > > Thanks for your reply. No, I’m not calling this using parallelization, and to > my knowledge at least I have not redirected stdout (how would I check this?). > The function is meant to be called by another function, but I am testing it > dire

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Jeff Newmiller
Time for you to document your working environment, Barth. Things that occur to me are the outputs of sessionInfo() and and system2( "gcc", "--version"). On November 27, 2018 8:21:57 AM PST, Barth Riley wrote: >Thanks for your reply. No, I’m not calling this using parallelization, >and to my know

[Rcpp-devel] SOLVED: Problems with Rcout

2018-11-27 Thread Barth Riley
The answer to my problem was to reinstall Rcpp. Thanks for everyone’s help! Barth ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Speed of RCppEigen Cholesky decomposition on sparse matrix (Serguei Sokol)

2018-11-27 Thread Dmitriy Selivanov
gt; > > > > > -- > > Message: 2 > Date: Tue, 27 Nov 2018 09:35:10 -0600 > From: Barth Riley > To: " rcpp-devel@lists.r-forge.r-project.org" > > Subject: [Rcpp-devel] Problems with Rcout > Message-ID: > <