[Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp
andreas.alfons at kuleuven.be
Tue Jun 26 01:27:58 CEST 2012
> To me it seems that I can not acces entries (i,j) using A(i,j) when A is a sparse matrix. Is that so? - and if yes, any suggestions on what I can do alternatively?
Take a look at the coeff() method, e.g., A.coeff(i,j)
See also its documentation:
More information about the Rcpp-devel