|
Ublas : |
Subject: Re: [ublas] Is coordinate_matrixelement assignment/insertion broken in 1.42?
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2010-03-01 08:14:40
Jesse Perla wrote:
> The new test file that I am attaching gives a little more
> detail on the tracking down the problem.
> I am also attaching the output on mingw and intel 11.1.
>From that output I would guess that "std::inplace_merge (ita.begin (), iunsorted, ita.end ());" in sparse_matrix.hpp:4387 doesn't work as expected. You could try to replace
// sort new elements and merge
std::sort (iunsorted, ita.end ());
std::inplace_merge (ita.begin (), iunsorted, ita.end ());
by
// sort new elements and merge
//std::sort (iunsorted, ita.end ());
std::sort (ita.begin (), ita.end ());
//std::inplace_merge (ita.begin (), iunsorted, ita.end ());
> Also, in case there is some weird compiler setting,
> I have attached my CMakeCache.txt (CMake 2.8) so you
> can see my flags if you are curious about this.
Very helpful, thanks. I had misread "MSVC2008SP1" as MSVC8SP1 = "Visual Studio 2005". However, I don't have time to try to reproduce this now (-> later...).
Regards,
Thomas