Re: [Rcpp-devel] Setting armadillo preprocessor macros in R package

2016-06-02 Thread Scott Ritchie
c/foo_types.hpp > > And put your #define macros there. > > > > On Thu, Jun 2, 2016 at 3:32 AM, Scott Ritchie > wrote: > >> Hi all, >> >> I would like to set my own Armadillo #define macros (i.e. some of those >> listed http://arma.sourceforge.net/docs.

[Rcpp-devel] Setting armadillo preprocessor macros in R package

2016-06-02 Thread Scott Ritchie
RcppArmadillo.h). However, the first file to compile is RcppExports.cpp, which has `#include ` at the top of the file, so my preprocessor macros in my source files are ignored when compiling. Kind regards, Scott Ritchie ___ Rcpp-devel mailing list Rcpp-devel

Re: [Rcpp-devel] float for BigMatrix

2015-06-01 Thread Scott Ritchie
tive float type. I found a related post here: > https://github.com/kaneplusplus/bigmemory/issues/4 > > Yue > > > > On Jun 2, 2015, at 12:27 AM, Scott Ritchie wrote: > > Hi Yue, > > The call (float *)xpMat->matrix() is simply telling C++ to interpret the > stored mem

Re: [Rcpp-devel] float for BigMatrix

2015-06-01 Thread Scott Ritchie
Hi Yue, The call (float *)xpMat->matrix() is simply telling C++ to interpret the stored memory as a float, so it’s simply breaking up the stored binary data into float-sized chunks instead of double-sized chunks, so you get nonsense numbers. To store as a float, you would have to cast double_bigma

Re: [Rcpp-devel] statement about rcpp11 ?

2014-09-29 Thread Scott Ritchie
went, working from a rudimentary knowledge of C). So I think Jonathon's suggestion of FAQ entries would be useful, if only for those who dive into Rcpp without knowing a whole lot about C++ to begin with. Cheers, Scott Ritchie On 30 September 2014 07:08, Romain Francois wrote: > If you

Re: [Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-12 Thread Scott Ritchie
On 12 August 2014 21:24, Dirk Eddelbuettel wrote: > > On 12 August 2014 at 17:09, Scott Ritchie wrote: > | Well that's frustrating. > | > | I've tried the OpenMPController package without success, and tried to > | explicitly disable BLAS in the Armadillo headers

Re: [Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-12 Thread Scott Ritchie
ich does this right. > > Dirk > > | > | Best, > | Yixuan > | > | > | 2014-08-11 18:55 GMT-04:00 Dirk Eddelbuettel : > | > | > | Hi Scott, > | > | > | On 12 August 2014 at 08:43, Scott Ritchie wrote: > | | Hi Everyone, > | | > | | I

Re: [Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-11 Thread Scott Ritchie
Setting the environment variables within my Rcpp function using `putenv` also doesn't seem to have an effect. On 12 August 2014 10:04, Scott Ritchie wrote: > Thanks Dirk and Yixuan, > > I think I'm misstating the question. > > I'm developing a package which makes

Re: [Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-11 Thread Scott Ritchie
M_THREADS=1" to your > .bashrc file, or compiling OpenBlas again by setting NUM_THREADS = 1 in the > Makefile.rule? > > > Best, > Yixuan > > > 2014-08-11 18:55 GMT-04:00 Dirk Eddelbuettel : > > >> Hi Scott, >> >> >> On 12 August 2014 at 08:4

[Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1

2014-08-11 Thread Scott Ritchie
nto thinking the machine only has 1 core? Regards, Scott Ritchie ___ 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] Package Development with Rcpp, RcppArmadillo, BH and bigmemory for systems without full C++ extensions

2014-07-29 Thread Scott Ritchie
Thanks for clearing that up for me Dirk, I'm hoping to publish on CRAN at some point, so I'll go with the suggested CXX_STD = CXX11 in my Makevars files. Cheers, Scott Ritchie On 30 July 2014 13:13, Dirk Eddelbuettel wrote: > > PS And of course, there is simpl

[Rcpp-devel] Package Development with Rcpp, RcppArmadillo, BH and bigmemory for systems without full C++ extensions

2014-07-29 Thread Scott Ritchie
be broken when I install on the system without full C++11 extension support. Can I just ignore this warning, and is what I have done correct? My package versions on both systems are: Rcpp_0.11.2 RcppArmadillo_0.4.320.0 Kind Regards, Scott Ritchie