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] Speed of RCppEigen Cholesky decomposition on sparse matrix

2018-11-26 Thread Yixuan Qiu
I guess BLAS plays a minor role here. The operation here is a sparse Cholesky decomposition, and if I'm correct the Matrix package in R uses SuiteSparse/CHOLMOD to do the factorization, while Eigen uses its own implementation. The underlying numerical algorithms may be different. Best, Yixuan On

Re: [Rcpp-devel] Distribution functions threadsafe in RcppParallel?

2018-04-16 Thread Yixuan Qiu
e, maybe stick to >> equivalent functions from a non-R source: C++11, Boost, ... >> >> Dirk >> >> | (It seems this question must have arisen before, but I haven't found an >> | answer) >> >> -- >> http://dirk.eddelbuettel.com | @eddelbuettel |

Re: [Rcpp-devel] using SparseSuite and RcppEigen in package

2018-01-17 Thread Yixuan Qiu
pectra > > Dirk > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org > ___ > 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] symmatu does not give symmetric matrix

2016-07-27 Thread Yixuan Qiu
> School of Public Health & Department of Surgery and Cancer > > Main address : > > Imperial College London | Room 171 | St Mary’s Campus | Norfolk Place | London > | W2 1PG | > > > > _______ > Rcpp-devel mailing

Re: [Rcpp-devel] RcppEigen fails on win-builder i386, and a possibly related issue.

2016-05-22 Thread Yixuan Qiu
m not sure whether this is a bug of MinGW or of Eigen, but at least we can start from here to investigate. (I would suggest future discussions moving to https://github.com/RcppCore/RcppEigen/issues/34) Best, Yixuan -- Yixuan Qiu Department of Statistics, Purdue Unive

Re: [Rcpp-devel] deprecated log_max warning

2016-04-21 Thread Yixuan Qiu
| [1] tools_3.2.4 RcppArmadillo_0.6.700.3.0 Rcpp_0.12.4 > | > > | ___ > | 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 > -- > http://dirk.eddelbuettel.com | @eddelbuettel |

Re: [Rcpp-devel] Map Eigen MatrixXf?

2015-06-24 Thread Yixuan Qiu
ppreciated. > > Regards, > Charles > > ___ > 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 > -- Yixuan Qiu Department of Statistics,

Re: [Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Yixuan Qiu
project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- Yixuan Qiu Department of Statistics, Purdue University ___ 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] Sparse matrix and RcppEigen

2015-06-08 Thread Yixuan Qiu
Universidade Federal do Paraná (UFPR) > > > ___ > 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 > -- Yixuan Qiu Department of Statistics, Purdue University ___ 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] Eigen-like pointer mappings in Rcpp?

2015-02-17 Thread Yixuan Qiu
Oops sorry, should be begin(). data() is the Eigen method. Best, Yixuan On Feb 17, 2015 6:12 PM, "Sparapani, Rodney" wrote: > On Tue, 2015-02-17 at 15:57 -0500, Yixuan Qiu wrote: > > Hello Rodney, > > > > If all you need is to pass a pointer to the fit() functi

Re: [Rcpp-devel] Eigen-like pointer mappings in Rcpp?

2015-02-17 Thread Yixuan Qiu
:as(_x); // or a const-correct version > >double a=fit(x, n); > > ... > > Thanks, > > Rodney > > > ___ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://li

Re: [Rcpp-devel] How to use functions from a R library in .cpp file

2015-01-22 Thread Yixuan Qiu
___ > 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 > -- Yixuan Qiu Department of Statistics, Purdue University ___ 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] Rcpp: Modification of input argument: Undefined behaviour

2014-11-25 Thread Yixuan Qiu
Hello David, The general answer to your question is, if the type of your matrix (integer or numeric) in R is different from the one you declare in Rcpp, Rcpp will make a copy and cast it to the appropriate type. For example, 1:12 is of type integer, and if you pass it as a NumericMatrix, Rcpp will

Re: [Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Yixuan Qiu
0.56 NA > NA > 2 b2() 10 128.785.762128.38 0.05 NA > NA > 3 b3() 10 22.351.000170.68 0.06 NA > NA > > > On Sun, Nov 23, 2014 at 9:15 PM, Yixuan Qiu wrote: > >> Hello Justace, >> It se

Re: [Rcpp-devel] RCppParallel Example Crashing R (Cross-Post from SO)

2014-11-23 Thread Yixuan Qiu
t; > For information I am running the following: > > - Windows 7 > - R: 3.1.2 > - Rtools: 3.1 > - Rcpp: 0.11.3 > - inline: 0.3.13 > - RStudio: 0.99.62 > > > ___ > Rcpp-devel mailing list > Rcpp-devel@lists.r

Re: [Rcpp-devel] The problem i encountered about RcppEigen double -(k/2)*std::log(2*M_PI)+rooti.diagonal().log().sum(); can not run .

2014-10-29 Thread Yixuan Qiu
>>} >> Con+=-(k/2)*std::log(2*M_PI) > > > it work well. > I do not know what is wrong with > *double Con = -(k/2)*std::log(2*M_PI)+rooti.diagonal().log().sum();* > > > ___ > Rcpp-devel mailing list > Rcpp-de

Re: [Rcpp-devel] RcppEigen: Windows binary from CRAN crashes R, but not when installing from source.

2014-10-15 Thread Yixuan Qiu
=CLC_TIME=German_Switzerland.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] devtools_1.6 > > loaded via a namespace (and not attached): > [1] fortunes_1.5-2 tools_3

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Yixuan Qiu
nt Solutions > > Fiserv > > Office: 678-375-5315 > > www.fiserv.com > > > > > > *From:* rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto: > rcpp-devel-boun...@r-forge.wu-wien.ac.at] *On Behalf Of *Yixuan Qiu > *Sent:* Wednesday, September 03, 2014 11:03 P

[Rcpp-devel] Rcpp API Reference

2014-09-03 Thread Yixuan Qiu
giving suggestions. Happy Rcpping! Best, Yixuan -- Yixuan Qiu Department of Statistics, Purdue University ___ 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] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-11 Thread Yixuan Qiu
> | ___ > | 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 > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.

Re: [Rcpp-devel] Rf_integrate?

2014-07-30 Thread Yixuan Qiu
is too seems daunting (even with > RcppGSL). I think there may be integration support in the boost headers, > but my head is too small for this yet. > > Any ideas that could help me? > > Dave Silkworth > > > ___________ > Rcpp-

Re: [Rcpp-devel] subsetting a matrix

2014-03-03 Thread Yixuan Qiu
t this subsetting procedure was going to be easy...but I > seem to have got stuck. > > thanks > > HLM > > > ___ > 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] Two hundred Rcpp-using packages on CRAN and BioC

2014-03-03 Thread Yixuan Qiu
onths back in a threaded mail reader. > > -- > Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com > ___ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/

Re: [Rcpp-devel] Is this issue solved?

2014-02-16 Thread Yixuan Qiu
rmail/rcpp-devel/2012-May/003792.html > > Thanks, > > Jianyang > > ___ > 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 > -- Yixu

Re: [Rcpp-devel] Sparse matrix operations

2014-02-04 Thread Yixuan Qiu
Sure. What are you planning to do with ARPACK? It seems that the newest version of Armadillo already supports eigs_sym() and eigs_gen() to retrieve a limited number of eigenvalues. Best, Yixuan 2014-02-03 Dirk Eddelbuettel : > > On 3 February 2014 at 18:09, Yixuan Qiu wrote: > | A pr

Re: [Rcpp-devel] Sparse matrix operations

2014-02-03 Thread Yixuan Qiu
I think that wonderful vignetter by Bates and Eddelbuettel describes > this :-) > > :-) > > Dirk > > -- > Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com > _______ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-proj