Message-ID: <24729.63410.768526.44668@rob.eddelbuettel.com>
Date: 2021-05-11T03:19:14Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] efficient ingestion of "sparse csv"
In-Reply-To: <CAANT7+Xz_ONXz3h0kx+7QWVrHmAjFHZnMJMhEuFzgPOVQs6DGw@mail.gmail.com>
Vincent,
In the broad terms of the question the best answer may be a simple "sure".
More seriously, there have been many approaches. Consider for example the
recent Rcpp Gallery post lead by Zach (with some edits by me):
https://gallery.rcpp.org/articles/sparse-matrix-class/
It's focus on not copying <i,p,x> again if we already have them as R vectors,
which is a fair point. If the goal is to get to SuperLU via (Rcpp)Armadillo
then I do not think you can avoid the (internal) copies. As always, the
answer may be "it depends".
Hope this helps, happy to refine, Dirk
--
https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org