Boost logo

Boost Users :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-04-12 13:53:43


Golan Green wrote:
> 1. The matrix should be large (about 3000 * 1500), and I need to make
> the insertion very efficient. When I use the regular
>
> insert function, it seems to work very slow. Is there a better way to
> insert objects into the sparse matrix?

The most efficient way to build up the structure is the COO format. So I
would advise to use the coordinate_matrix. One the structure is filled
you might want to create a compressed-sparse-column (or
compressed_matrix) matrix from the coordinate_matrix because operations
on the CSC are faster than one the COO.

t


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net