On 22 February 2014 at 15:29, Sameer D'Costa wrote: | Hi Robi, | | On Thu, Feb 20, 2014 at 11:31 AM, Robi Ragan <[email protected]> wrote: | | | I am trying to write custom as<>() and wrap() converters for the most | common input and output geometry types used in that library. | | An example of the use would be: | | To use boost::geometry::convex_hull() to take in an n x 2 R matrix find the | convex hull and return an m x 2 R matrix. | | | It looks like you asked a similar question on Stack Overflow about a year | ago. | http://stackoverflow.com/questions/15195350/ | converting-rcpp-numericmatrix-for-use-with-boost-geometry | | I posted an answer there because it seemed a little messy to post a code chunk | to the mailing list. http://stackoverflow.com/a/21960694/342362
Very nice post and ... now also an entry at the Rcpp Gallery: http://gallery.rcpp.org/articles/boost-geometry-as-and-wrap-example/ making it possibly the simplest as<>() and wrap() example. Thanks for writing it up! Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
