Opened 14 years ago

Last modified 13 years ago

#2901 new Bugs

Resizing banded matrices

Reported by: Burkhard Ritter <burkhard@…> Owned by: Gunter
Milestone: Boost 1.42.0 Component: uBLAS
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

Similar to #1237 but with banded matrices. When resizing a banded matrix with preserve set to true, I get

Check failed in file /home/britter/include/boost/numeric/ublas/storage.hpp at line 195:
i < size_
terminate called after throwing an instance of 'boost::numeric::ublas::bad_index'
  what():  bad index

See attached program.

Attachments (1)

resize.cpp (194 bytes ) - added by Burkhard Ritter <burkhard@…> 14 years ago.

Download all attachments as: .zip

Change History (2)

by Burkhard Ritter <burkhard@…>, 14 years ago

Attachment: resize.cpp added

comment:1 by Gunter, 13 years ago

Milestone: Boost 1.39.0Boost 1.42.0

the issue must be fixed by providing a specialized version of

detail::matrix_resize_preserve<layout_type>(old, temp)
Note: See TracTickets for help on using tickets.