artsy / eigen

The Art World in Your Pocket or Your Trendy Tech Company's Tote, Artsy's mobile app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to fill sparse matrix fastly?

wujilingfeng opened this issue · comments

I was filling a sparse matrix, but it's so slowly.
I was wondering how to fill sparse matrix fastly?
My code is like :

 SparseMatrix<double> A(16777216,16777216);
    A.reserve(VectorXi::Constant(16777216,140));
for(..)
{
    for(...)
   A.coeffRef()
}

👋 hi there! I think perhaps this issues was meant for the linear algebra library Eigen? https://github.com/PX4/eigen