[Rcpp-devel] RcppParallel with string or char?

brian knaus briank.lists at gmail.com
Wed Feb 28 00:46:52 CET 2018


Thanks for your suggestion Dirk! But it may be beyond my abilities. I may
have to learn more than I anticipated on this one.

Brian

On Tue, Feb 27, 2018 at 2:30 PM, Dirk Eddelbuettel <edd at debian.org> wrote:

>
> On 27 February 2018 at 12:43, brian knaus wrote:
> | I have an Rcpp function that I would like to speed up, so RcppParallel
> | seemed like a solution. The issue I'm having is that my data is not
> | numeric. I currently use an Rcpp::StringMatrix as input and
> | Rcpp::CharacterMatrix as output from the function. The examples at the
> Rcpp
> | Gallery all seem to consist of RMatrix<double> or RVector<double>. I was
> | able to find the below SO post which seems to ask my question but does
> not
> | appear to have resolved successfully.
> |
> | https://stackoverflow.com/questions/29105531/rcppparallel-converting-
> charactermatrix-to-rmatrixt/29115437
> |
> | Is there a thread safe non-numeric data structure that can be used with
> | RcppParallel?
>
> You may have to craft a container similar to RMatrix:
> https://github.com/RcppCore/RcppParallel/blob/master/inst/
> include/RcppParallel/RMatrix.h
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20180227/84dc3d9c/attachment.html>


More information about the Rcpp-devel mailing list