Skip to content

add _matrix<> to reference table #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions vignettes/converting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,24 @@ It is also a place to highlight some of the largest differences between Rcpp and

## Class comparison table

| Rcpp | cpp11 (read-only) | cpp11 (writable) | cpp11 header |
| --- | --- | --- | --- |
| NumericVector | doubles | writable::doubles | <cpp11/doubles.hpp> |
| IntegerVector | integers | writable::integers | <cpp11/integers.hpp> |
| CharacterVector | strings | writable::strings | <cpp11/strings.hpp> |
| RawVector | raws | writable::raws | <cpp11/raws.hpp> |
| List | list | writable::list | <cpp11/list.hpp> |
| RObject | sexp | | <cpp11/sexp.hpp> |
| XPtr | | external_pointer | <cpp11/external_pointer.hpp> |
| Environment | | environment | <cpp11/environment.hpp> |
| Function | | function | <cpp11/function.hpp> |
| Environment (namespace) | | package | <cpp11/function.hpp> |
| wrap | | as_sexp | <cpp11/as.hpp> |
| as | | as_cpp | <cpp11/as.hpp> |
| stop | stop | | <cpp11/protect.hpp> |
| checkUserInterrupt | check_user_interrupt | | <cpp11/protect.hpp> |
| Rcpp | cpp11 (read-only) | cpp11 (writable) | cpp11 header |
| --- | --- | --- | --- |
| NumericVector | doubles | writable::doubles | <cpp11/doubles.hpp> |
| NumericMatrix | doubles_matrix<> | writable::doubles_matrix<> | <cpp11/doubles.hpp> |
| IntegerVector | integers | writable::integers | <cpp11/integers.hpp> |
| IntegerMatrix | integers_matrix<> | writable::integers_matrix<> | <cpp11/integers.hpp> |
| CharacterVector | strings | writable::strings | <cpp11/strings.hpp> |
| RawVector | raws | writable::raws | <cpp11/raws.hpp> |
| List | list | writable::list | <cpp11/list.hpp> |
| RObject | sexp | | <cpp11/sexp.hpp> |
| XPtr | | external_pointer | <cpp11/external_pointer.hpp> |
| Environment | | environment | <cpp11/environment.hpp> |
| Function | | function | <cpp11/function.hpp> |
| Environment (namespace) | | package | <cpp11/function.hpp> |
| wrap | | as_sexp | <cpp11/as.hpp> |
| as | | as_cpp | <cpp11/as.hpp> |
| stop | stop | | <cpp11/protect.hpp> |
| checkUserInterrupt | check_user_interrupt | | <cpp11/protect.hpp> |

## Incomplete list of Rcpp features not included in cpp11

Expand Down