Subject: [Boost-bugs] [Boost C++ Libraries] #1237: Resizing symmetric matrices
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-10 06:57:49
#1237: Resizing symmetric matrices
-------------------------------------------+--------------------------------
Reporter: tinne.delaet_at_[hidden] | Type: Bugs
Status: new | Milestone: To Be Determined
Component: uBLAS | Version: Boost 1.34.1
Severity: Problem | Keywords:
-------------------------------------------+--------------------------------
Hi,
While using the most recent version of Boost (boost_1_34_1) I noticed some
problems when resizing a symmetric matrix. I included a test program to
illustrate the problems. (Recent SVN snapshots and boost 1.33 have the
same problem)
When executing I get the following error caused by resizing the symmetric
matrix with the preserve option set to true:
Resize ml to bigger size[[BR]]
Check failed in[[BR]]
file /home/fiep/sources/boost_1_34_1/boost/numeric/ublas/storage.hpp at
line 196: [[BR]]
i < size_ [[BR]]
terminate called after throwing an instance of
'boost::numeric::ublas::bad_index' [[BR]]
 what():  bad index [[BR]]
Aborted (core dumped)
Note that are no problems when resizing normal matrices nor resizing
symmetric
matrices when the preserve option is set to false.
When stepping into the program, it seems that something goes wrong with
the
indexing of the symmetric matrix. Â I expect that these problems are caused
by
the use of the matrix_resize_preserver  routine which is called in case
the
preserve option is set to true. I think  this routine is designed for
normal
matrices only and expects a matrix which  is completely filled as opposed
to
a symmetric matrix in which only one  triangle is filled.
Might this be a BUG?
Kind regards,
Tinne De Laet
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1237>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC