[Rcpp-devel] Rcpp packages that use Boost.Geometry?

Dirk Eddelbuettel edd at debian.org
Mon Feb 24 14:16:00 CET 2014


On 22 February 2014 at 15:29, Sameer D'Costa wrote:
| Hi Robi, 
| 
| On Thu, Feb 20, 2014 at 11:31 AM, Robi Ragan <robi.ragan at sjsu.edu> 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 | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list