Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

27 results for “from:Tama Ma”

[Rcpp-devel] Wrapping copy constructor in rcpp?
Tama Ma · Nov 4, 2011 · rcpp-devel

Dear Rcpp developers, Maybe my previous email has been ignored. I am asking whether there is a possibility to wrap the copy constructor in a C++ class via Rcpp? Thank you very much. Best regards, Tama Ma (+41 78 640...

[Rcpp-devel] copy constructor
Tama Ma · Nov 14, 2011 · rcpp-devel

Hi Dirk and Romain, I have been trying to wrap the C++ copy constructor using the Rcpp module, and has been rather unsuccessful. I look at the clone() function which Dirk mentioned, and that only manages to copy the pointer...

[Rcpp-devel] Interrupts in compiled code.
Tama Ma · Dec 8, 2010 · rcpp-devel

Ctrl-C for abort? Tama On Dec 8, 2010, at 9:41 PM, Andrew Redd wrote: > I have an MCMC chain that runs entirely in c++ with Rcpp. It sometimes runs for a vary long time and I want to...

[Rcpp-devel] Loading my own dynamic library using Module ?
Tama Ma · Dec 4, 2010 · rcpp-devel

Dear Rcpp developers, I use gcc compiler and manage to compile my Rcpp-wrapped C++ code to /my/project/dir/lib/mod.so . Now, I want to call it inside R. Is there a way to do something like: export...

[Rcpp-devel] Enquire on Rcpp::wrap or equivilant
Tama Ma · Dec 5, 2010 · rcpp-devel

Dear Rcpp developers, May I kindly enquire on the wrapping of a portion of a container into an R numeric array by Rcpp::wrap? For example, I wish to have: template <class size_type, class element_type> Rcpp::NumericVector convert...

[Rcpp-devel] Fwd: Extending <Rcpp/module/Module_generated_class_constructor.h>
Tama Ma · Dec 3, 2010 · rcpp-devel

Dear Dirk, Good to hear this! Best regards, Tama Ma On Dec 3, 2010, at 10:53 PM, Dirk Eddelbuettel wrote: > > Tama, > > On 3 December 2010 at 15:16, Dirk Eddelbuettel wrote: > | I still get a seg fault in 'R...

[Rcpp-devel] Loading my own dynamic library using Module ?
Tama Ma · Dec 4, 2010 · rcpp-devel

Dear Romain, This works perfectly! Thank you very much. Best regards, Tama Ma (PS: Thank you for your advice on moving to R packages, and I will read on how to do that.) On Dec 4, 2010, at 11:40...

[Rcpp-devel] wrapping the copy constructor and a mutate() function using rcpp...
Tama Ma · Oct 26, 2011 · rcpp-devel

Dear Rcpp developers, I have the following questions: template <class T> class X { public: X() {} X(const X & obj_) : _value(obj_._value) X mutate() const { X _new_obj; std::copy_if (_value.begin(), _value.end(), std::back_inserter(_new_obj...

[Rcpp-devel] Presentation of Rcpp in Meielisalp
Tama Ma · Jun 29, 2011 · rcpp-devel

Dear Dirk and Romain, I will be giving a talk on the power of the Rcpp wrapper tomorrow morning in the Meielisalp financial engineering workshop organized by Dielthem. Hereby, I attach the link of my presentation slides (in pdf), ie...

[Rcpp-devel] Extending <Rcpp/module/Module_generated_class_constructor.h>
Tama Ma · Dec 3, 2010 · rcpp-devel

Dear Rcpp developers, I want to export a class with a constructor with 7 argments. However, in <Rcpp/module/Module_generated_class_constructor.h>, we have only support up to 6 arguments, eg. template < typename U0, typename U1, typename U2...

[Rcpp-devel] Fwd: Extending <Rcpp/module/Module_generated_class_constructor.h>
Tama Ma · Dec 3, 2010 · rcpp-devel

Dear Dirk, Thank you very much for updating the svn so fast. Well, I must admit that I only started to learn R and Rcpp yesterday, so I am very new to this business. To r2697, I first do a...

[Rcpp-devel] Error detected in Rcpp module wrapper
Tama Ma · Dec 5, 2010 · rcpp-devel

Hi Romain, I agree with you that for fast development, inline looks more attractive. Thank you for sharing! Best regards, Tama Ma On Dec 5, 2010, at 6:09 PM, Romain Francois wrote: > Tama, > > While I'm on the subject...

[Rcpp-devel] Limit of 20 on length of Rcpp::List::create?
Tama Ma · Nov 1, 2011 · rcpp-devel

Hi, I recommend the following workaround instead... std::vector<some_type> _your_favorite_list; _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite_list.push_back(_whatever_); _your_favourite...

[Rcpp-devel] Wrapping copy constructor in rcpp?
Tama Ma · Nov 4, 2011 · rcpp-devel

Dear Dirk, Thanks for the reply. I am pretty sure that it has not been implemented yet, and I will try to look into it. From a practical point of view, I would want to copy a "Rcpp" object in...

[Rcpp-devel] Error detected in Rcpp module wrapper
Tama Ma · Dec 5, 2010 · rcpp-devel

Dear Rcpp developers, I have written the following BlackScholesCallFiniteDifference class in <include/black-scholes/black-scholes-call-finite-difference.hpp>, with the Rcpp module wrapper in <src/black-scholes/black-scholes-call-finite-difference-R-module.C>. Then, I compile...

[Rcpp-devel] Extending <Rcpp/module/Module_generated_class_constructor.h>
Tama Ma · Dec 3, 2010 · rcpp-devel

Dear Romain, Here it is. Hope it works fine. Best regards, Tama Ma -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch-r2695.txt URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203...

[Rcpp-devel] c++ class as argument in rcpp function (using modules)
Tama Ma · Dec 21, 2011 · rcpp-devel

Dear all, This is something I desire for a long time, but I do not have currently the time to do that. Let me summarize my desire: 1) Copy constructor 2) Rcpp module objects being wrapped so that they could...

[Rcpp-devel] R.e. is std::sort function broken??
Tama Ma · Sep 22, 2011 · rcpp-devel

Maybe I can give a slightly more elegant solution from Boost... (fingers crossed...) In this manner, the ugly for-loop is removed... For the toy-example, I would suggest the following: std::vector<double> data; data.reserve(20); // extreamly important...

[Rcpp-devel] Fwd: Extending <Rcpp/module/Module_generated_class_constructor.h>
Tama Ma · Dec 3, 2010 · rcpp-devel

Oops, I replied to the wrong email... Tama Ma Begin forwarded message: > From: Tama Ma <pingnang at phys.ethz.ch> > Date: December 3, 2010 10:04:51 PM GMT+01:00 > To: Romain Francois <romain at r-enthusiasts.com> > Cc...

[Rcpp-devel] Enquire on Rcpp::wrap or equivilant
Tama Ma · Dec 7, 2010 · rcpp-devel

Hi Romain, Thank you very much! BTW, I really like the RCPP_MODULE very much. Please tell me if I can contribute to RCpp as a developer or a helper. Best regards, Tama Ma On Dec 6, 2010, at 7...

Can't find what you're looking for? Try searching with Google .