Re: [Rcpp-devel] Random matrix row and column permutations in RcppEigen

2013-06-01 Thread Dirk Eddelbuettel
Hi Kouros, On 1 June 2013 at 16:13, [email protected] wrote: | The problem is that I cannot (or do not know how to) use the R random seeding | mechanism to make the permutation resampling process | reproducible. I would appreciate any advice on this matter (e.g.,  replacing | std::random_shuffle

[Rcpp-devel] Random matrix row and column permutations in RcppEigen

2013-06-01 Thread owzar001
Hi Adopting the solution outlined in this post http://stackoverflow.com/questions/15858569/randomly-permute-rows-columns-of-a-matrix-with-eigen I can produce  random column and row permutation replicates of matrices using RcppEigen: permmatrix,eigen::dynamic> ___

Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - OpenMP

2013-06-01 Thread szehnder
Hi Asis, I'll have a look at it and come back to you. Best Simon --Original Message-- From: Asis Hallab To: Simon Zehnder Cc: Dirk Eddelbuettel Cc: [email protected] Subject: Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - O

Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - OpenMP

2013-06-01 Thread Asis Hallab
Dear Simon, thank you very much for your insights and offer to help. I prepared a very small project on github: https://github.com/asishallab/PhyloFun_Rccp You'll find installation and test instructions as well as references to the file containing the OpenMP using C++ code. Your help is much ap

Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - OpenMP

2013-06-01 Thread Dirk Eddelbuettel
On 1 June 2013 at 14:05, Simon Zehnder wrote: | On Jun 1, 2013, at 1:45 PM, Asis Hallab wrote: | > 1) Use private directive on all Rcpp-Objects that are only accessed to | > be read from, and a shared statement on the Rcpp List that collects | > the results. -> segfault | | First, you do usually

Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - OpenMP

2013-06-01 Thread Simon Zehnder
Hi Asis, I'll write between the lines here: On Jun 1, 2013, at 1:45 PM, Asis Hallab wrote: > Dear Dirk and Simon, > > thank you very much for your help. > > I have made a few experiments and am very puzzled. Maybe I could > bother you with advise on this? > > The experiments on a > #pragma o

Re: [Rcpp-devel] Conversion of Rcpp::Vector Rcpp::List and Rcpp::Matrix to std objects - OpenMP

2013-06-01 Thread Asis Hallab
Dear Dirk and Simon, thank you very much for your help. I have made a few experiments and am very puzzled. Maybe I could bother you with advise on this? The experiments on a #pragma omp parallel for 1) Use private directive on all Rcpp-Objects that are only accessed to be read from, and a share