SCM

Forum: Rcpp 0.8.0

Posted by: Romain Francois
Date: 2010-05-20 15:34
Summary: Rcpp 0.8.0
Project: Rcpp - Seamless R and C++ Integration

Content:

Rcpp 0.8.0 was published to CRAN a few days ago. See http://romainfrancois.blog.free.fr/index.php?post/2010/05/17/Rcpp-0.8.0 for details

Latest News

Rcpp 0.8.0

Romain Francois - 2010-05-20 15:34 -
...

 

Monitor Forum | Start New Thread Start New Thread
Viewing NumericMatrix From gdb [ Reply ]
By: Christopher Hammond on 2015-01-21 16:17
[forum:41818]
I have followed the instructions for debugging C++ routines using Rcpp from gdb. This is working fine. I am having trouble actually printing or accessing elements of a NumericMatrix or NumericVector from gdb. If xin is a NumericMatrix, then
gdb: p xin
displays

$2 = {<Rcpp::Vector<14>> = {<Rcpp::RObject> = {_vptr.RObject = 0x7fff8df4b410,
m_sexp = 0x2567f20}, <Rcpp::VectorBase<14, true, Rcpp::Vector<14> >> = {<Rcpp::traits::expands_to_logical__impl<14>> = {<No data fields>}, <No data fields>}, <Rcpp::internal::eval_methods<14>> = {<No data fields>}, cache = {
start = 0x31e03c39b0}}, <Rcpp::MatrixBase<14, true, Rcpp::Matrix<14> >> = {<Rcpp::traits::expands_to_logical__impl<14>> = {<No data fields>}, <No data fields>}, nrows = -537925942}


p xin(1,1) does not work, nor does
p R_PV(xin(1,1))

Any suggestions?

Thanks to:
Vienna University of Economics and Business Powered By FusionForge