R/sparse_bridge.R
sparse_row_sums.RdStage 2 end-to-end check of the FFI bridge: extract @p, @i, @x
from a dgCMatrix, ship them to Rust, reconstruct a faer
SparseColMat through the dgcmatrix-faer-bridge crate, and return
the row sums computed by walking the reconstructed sparse matrix.
sparse_row_sums(A)a sparse matrix coercible to Matrix::dgCMatrix.
Numeric vector of length nrow(A).
The result must agree with Matrix::rowSums() for every valid input;
this is the basis of the Stage 2 unit tests.