rcpp_xy_from_matrix function

Coordinates from a matrix