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.

19 results for “from:Richard Downe”

[Rcpp-devel] inheritance
Richard Downe · Oct 4, 2011 · rcpp-devel

Is it possible to have a class wrapped in rcpp inherit directly from a superclass? E.g., I have class_<tcfaIndices>( "tcfaIndices" ) .constructor<long>() .method("SetTCFADefinition", &tcfaIndices::SetTCFADefinition) .method("getTCFALabels", &tcfaIndices::getTCFALabels) ; and class_<morphologyIndices>( "morphologyIndices" ) .constructor<long>() .method("getCentroidLumen...

[Rcpp-devel] module/S4 retval
Richard Downe · Sep 5, 2012 · rcpp-devel

I would like to be able to create object factories in my rcpp module, such that I can call classA::GetInitializedB(), and get an S4 object (module instance?) back. From what I can tell, the "module" class definition macros are...

[Rcpp-devel] cmake
Richard Downe · Dec 14, 2012 · rcpp-devel

I use cmake for all my makefile generation. I realize there are other good tools out there; cmake meets my needs rather well, and I'm happy with it. Most libraries I use in my development (cgal, python, perl, swig...

[Rcpp-devel] inheritance
Richard Downe · Oct 4, 2011 · rcpp-devel

I'm fairly sure I'm not doing anything at all with multiple inheritance. This is a single instance of single inheritance. I will peruse the list; what I had seen in my searches so far had suggested no conclusive...

[Rcpp-devel] C++ code for ordinary differential equations
Richard Downe · Oct 5, 2011 · rcpp-devel

On 10/04/2011 05:05 PM, Douglas Bates wrote: > I am working with pharmacokinetic/pharmacodynamic models, some of > which can only be represented as the solutions of ordinary > differential equations. I am looking for ODE sofware written in C...

[Rcpp-devel] inheritance
Richard Downe · Oct 4, 2011 · rcpp-devel

Since I'm a bit of a glutton for punishment, and I would like to see this feature...are there major technical hurdles as to why this has not been implemented (e.g., I should just give up and find...

[Rcpp-devel] module/S4 retval
Richard Downe · Sep 6, 2012 · rcpp-devel

In the interest of sharing, I figured I should supply what eventually worked. I'm kicking myself, because I tried this early on when I was trying to create an SEXP operator, and abandoned it because of const conflicts, but...

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

A slightly hackish, if effective, workaround I've used in this instance is to have "as<>()" convert a string argument to a class return value, thereby avoiding the metaphysics of creating a c++ class in R. template <> fusionProject::TCFAFunctor *as...

[Rcpp-devel] cmake
Richard Downe · Dec 14, 2012 · rcpp-devel

That actually looks rather perfect. Thanks! -rd On 12/14/2012 01:54 PM, JJ Allaire wrote: > We wrote one for RStudio, not sure if it will fully meet your needs > but it's at least a starting point: > > https...

[Rcpp-devel] Using CMakeLists.txt
Richard Downe · Mar 5, 2013 · rcpp-devel

What I've been doing the past couple years, which has worked extremely well, is to use a configure script (I've used perl because it allows me to do a bunch of other build-time processing that's specific...

[Rcpp-devel] Using CMakeLists.txt
Richard Downe · Mar 5, 2013 · rcpp-devel

Also, you're failing to tell CMake to build a shared library. You need SET(CMAKE_C++_CREATE_SHARED_LIBRARY 1) And if you're using Rcpp, also need to explicitly add Rcpp link flags (Rscript -e Rcpp:::LdFlags()) -rd...

[Rcpp-devel] Using CMakeLists.txt
Richard Downe · Mar 5, 2013 · rcpp-devel

One other detail: cmake by default names all library outputs "lib[TARGET]". (e.g., there *is* no my_package.so, but possibly a libmy_package.so) If you add the line SET_TARGET_PROPERTIES(fusionIndices PROPERTIES PREFIX "") you'll have...

[Rcpp-devel] Wrapping a C struct in C++ for constructor/destructor
Richard Downe · Dec 14, 2012 · rcpp-devel

Since cholmod has specific functions for all the allocation/free tasks involved in the different data structs, if you're really ambitious, you could probably create a templated mgr c++ class, where the template args are the specific memory management...

[Rcpp-devel] Using CMakeLists.txt
Richard Downe · Mar 5, 2013 · rcpp-devel

I must admit, it's been awhile since I cobbled together my solution; I know it's worked seamlessly on 2 or 3 linux variants, but hasn't been tested beyond that. I do recall getting frustrated with making cmake...

[Rcpp-devel] Rcpp 0.10.0
Richard Downe · Nov 14, 2012 · rcpp-devel

Thanks. I had recently been playing with using XPtr to do some of the passing RcppModule objects back into c++, with only limited success, so this will be a welcome change. Also, I can probably finally cull my hackery of...

[Rcpp-devel] module/S4 retval
Richard Downe · Sep 6, 2012 · rcpp-devel

On 09/06/2012 08:04 PM, Dirk Eddelbuettel wrote: > And 'morphologyIndices' is the class that you wrapped via Rcpp modules, so > now you are calling the object creation from C++ through make_new_object? yup > I > wonder why we...

[Rcpp-devel] inheritance
Richard Downe · Oct 5, 2011 · rcpp-devel

Thanks, I'll weigh my options going forward, but I appreciate seeing another approach. --rd On 10/05/2011 08:54 AM, Douglas Bates wrote: > On Wed, Oct 5, 2011 at 8:51 AM, Douglas Bates<bates at stat.wisc...

[Rcpp-devel] cmake
Richard Downe · Dec 14, 2012 · rcpp-devel

I'll do that. I may use JJ's stuff as a starting point as well, but I'll look at the RInside stuff and drop Peter a line as appropriate. It may also be worthwhile to talk to the...

[Rcpp-devel] module/S4 retval
Richard Downe · Sep 6, 2012 · rcpp-devel

Absolutely, my apologies, I'd just been hitting "reply". It does appear as though instances of "classes" as encapsulated by modules show up in R as S4 objects. I had naively thought that by using the Rcpp::S4 constructor I...

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