[Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-11 Thread Dale Smith
've run similar examples on my Windows 7 box at work and on my OS X laptop (Mountain Lion) at home to confirm this is not os-dependent. Thanks, Dale Smith dtsm...@mindspring.com mat <- cbind(rnorm(50), rnorm(50), rnorm(50)) y <- rnorm(50) cppFunction(' List fastLm(NumericVector

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-12 Thread Dale Smith
speed are good ones. Let me look over this tonight and send a paragraph. Sent from my iPhone On Apr 11, 2013, at 9:52 PM, Dirk Eddelbuettel wrote: > > Hi Dale, > > On 11 April 2013 at 21:12, Dale Smith wrote: > | I had a problem this afternoon with an arma::mat constructor an

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-12 Thread Dale Smith
S wrote: > On Fri, Apr 12, 2013 at 11:12 AM, Dale Smith wrote: >> >> fastLm(y, mat) # error is "error: Mat::init(): mismatch between size of >> auxiliary memory and requested size" > > There is a further option within the Mat constructor, which

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-14 Thread Dale Smith
As Dirk suggested below, I'm working on a paragraph to point out the constructor used implies no modification of the arma::mat memory. Dale On Apr 11, 2013, at 9:52 PM, Dirk Eddelbuettel wrote: > > Hi Dale, > > On 11 April 2013 at 21:12, Dale Smith wrote: > | I had a pr

Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Dale Smith
Since you changed the function name, you can no longer call rcpp_hello_world() from R. Try calling the new function name. Better yet, start over, leave rcpp_hello_world code alone and add another .cpp, .h, and .R file with another function. Dale On May 29, 2013, at 8:41 PM, Asis Hallab wrote:

Re: [Rcpp-devel] Rcpp matrix generation crashes my R session

2013-06-22 Thread Dale Smith
I would say you should create a simpler example that still crashes. Comment out everything except the first for loop; see if it crashes then. If not, uncomment the next one, etc. Repeat this until you find where it crashes. Do you have a one-off problem with a loop index? I think you do, but wil

[Rcpp-devel] Laid Off but Found a New Job using R/Rcpp

2015-01-03 Thread Dale Smith
skills will come in handy, as well as the machine learning courses I’ve taken via Coursera. I’m not leaving finance permanently, but am broadening my background with R, machine learning, and high performance computing. Dale Smith ___ Rcpp-devel mailing

Re: [Rcpp-devel] assert() for Rcpp?

2015-02-18 Thread Dale Smith
I haven't been very active lately with Rcpp, but I like Nathan's advice below. Don't redefine assert(), I think that's not friendly to inexperienced people and will just generate more questions. Dale Smith, Ph.D. | Data Scientist | nexidia | office: +1 404 495 7220 ext 400

Re: [Rcpp-devel] R.e. Using Rcpp and MATLAB MAT-File API to Read MAT Files

2015-03-25 Thread Dale Smith
m the Octave distribution? http://stackoverflow.com/questions/9915658/how-do-you-open-mat-files-in-octave This also offers a viable way to test this type of code for those who don't have MATLAB. Dale Smith, Ph.D. | Data Scientist | nexidia | office: +1 404 495 7220 ext 4008 | fax: +1 40

Re: [Rcpp-devel] Accessing list of list members to permute them

2015-04-03 Thread Dale Smith
Hi, Instead of posting this code to the list, a better idea is to write up your solution for RcppGallery. That way you can share code with a wider audience. http://gallery.rcpp.org <http://gallery.rcpp.org/> Dale Smith dtsm...@mindspring.com > On Apr 3, 2015, at 8:02 AM, ogami musas

Re: [Rcpp-devel] RcppParallel on Solaris

2015-04-03 Thread Dale Smith
would volunteer to do this myself, but my spouse is already hostile to having equipment around that is “not used”. Sorry. Dale Smith dtsm...@mindspring.com > On Apr 3, 2015, at 7:40 AM, JJ Allaire wrote: > >> I am happy to share my experience with Solaris. I have been meaning to

Re: [Rcpp-devel] examples of using cula matrix multiplication in Rcpp

2015-05-18 Thread Dale Smith
if you have the expertise and can make the use case. Moving data on and off the card is a third layer between you and the computations… Dale Smith, Ph.D. Data Scientist ​ [http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20logo.png]<http://nexidia.com/> d. 404.495.7220 x 4

Re: [Rcpp-devel] Convert R matrix to boost ublas?

2015-05-27 Thread Dale Smith
missed all new stuff from C++11.” Dale Smith, Ph.D. Data Scientist ​ [http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20logo.png]<http://nexidia.com/> d. 404.495.7220 x 4008 f. 404.795.7221 Nexidia Corporate | 3565 Piedmont Road, Building Two, Suite 400 | Atlanta, GA 30305

Re: [Rcpp-devel] Calling C++ Macros in R using Rcpp

2016-08-28 Thread Dale Smith
Agree about macros. Sent from my iPad > On Aug 28, 2016, at 9:58 AM, Dirk Eddelbuettel wrote: > > > Fatima, > > Oh, and just to clarify: Macros are still possible. In fact, if you study > the Rcpp source code you will find _extensive_ use of them. But as a matter > of programming style I w

Re: [Rcpp-devel] Is there an easy way to convert Rcpp code to pure cpp code to build a command line tool

2017-05-04 Thread Dale Smith
Wrap the Rcpp headers in an #if/#endif. That way, when you our outside of R, the Rcpp code is skipped. I used this idea in 2013-2014 to build in R using Rcpp, and the same code in Visual Studio. Dale Smith -Original Message- >From: Yue Li >Sent: May 4, 2017 10:16 AM >To: r

[Rcpp-devel] Rcpp Class

2018-09-14 Thread Dale Smith
of this group could use Udemy. Actually, Udemy would reach more people. I’m available for volunteer efforts to a limited extent. Thanks, Dale Smith dtsm...@mindspring.com 917-691-1791 Note: All times are Eastern. See my calendar to book a time to speak with me https://calendly.com/dtsmith2001