Opened 9 years ago

Last modified 8 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:


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@…> 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Burkhard Ritter <burkhard@…>

Attachment: resize.cpp added

comment:1 Changed 8 years ago by Gunter

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)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Gunter.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.