Boost logo

Ublas :

From: Nico Galoppo (nico_at_[hidden])
Date: 2006-07-05 10:19:54


> Gunter Winkler wrote:
>> The default assignment should be very fast. Make sure you have defined NDEBUG
>>
>> compressed_matrix<double, row_major> B(size,size,A.nnz());
>> B.assign(A);
>>
>> I attach another one of my timing examples.

I found the culprit. Using your patch for nnz(), it didn't really increase the
speed of assignment, still about 28s. Then, I realized that the difference was
that I was using a column-major compressed matrix. Changing to row-major,
assignment now takes .04 s :)

Thanks again,

--nico

-- 
Nico Galoppo           UNC-CH :: ETHZ         http://www.ngaloppo.org
                        +41-77-4319939