Boost logo

Ublas :

From: Nico Galoppo (nico_at_[hidden])
Date: 2007-07-11 14:14:44


Choon,

For sparse matrices, look at Gunter's examples:

http://www.guwi17.de/ublas/matrix_sparse_usage.html

--nico

choon wrote:
> Hi,
>
> May I know if there are ways to fill the entries of a sparse/dense matrix
> besides this: M(i,j) = value?
> For sparse (compressed sparse row) matrix, I could provide data in the
> standard (rows,columns,values) format, whereas for dense matrix, I have a
> long 1D array of length = num_rows*num_columns.
>
> Thanks,
> Choon

-- 
Nico Galoppo        UNC-CH PhD.student        http://www.ngaloppo.org
                    cell +1-919-360-5056