On 11 December 2024 at 10:40, Kumar MS wrote:
| # -- The function in question --
| cppFunction(
| "arma::mat accessEntries(Rcpp::List x){
| for(int i=0; i(x[i]); //similar to :
https://gallery.rcpp.org/articles/dynamic-dispatch-for-sparse-matrices/
| }
| }",
You say you return an
Hello Rcpp developers,
The following simple code attempts to instantiate every sparse matrix in a
given R list of sparse matrices ("dgCMatrix"). The code compiles OK, but
crashes at runtime with a segmentation fault.
I followed the as<> approach outlined in
https://gallery.rcpp.org/articles/dynam