$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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