Boost C++ Libraries: Ticket #2901: Resizing banded matrices https://svn.boost.org/trac10/ticket/2901 <p> Similar to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1237" title="#1237: Bugs: Resizing symmetric matrices (closed: fixed)">#1237</a> but with banded matrices. When resizing a banded matrix with preserve set to true, I get </p> <pre class="wiki">Check failed in file /home/britter/include/boost/numeric/ublas/storage.hpp at line 195: i &lt; size_ terminate called after throwing an instance of 'boost::numeric::ublas::bad_index' what(): bad index </pre><p> See attached program. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2901 Trac 1.4.3 Burkhard Ritter <burkhard@…> Tue, 31 Mar 2009 15:22:52 GMT attachment set https://svn.boost.org/trac10/ticket/2901 https://svn.boost.org/trac10/ticket/2901 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">resize.cpp</span> </li> </ul> Ticket Gunter Mon, 05 Oct 2009 22:16:55 GMT milestone changed https://svn.boost.org/trac10/ticket/2901#comment:1 https://svn.boost.org/trac10/ticket/2901#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">Boost 1.42.0</span> </li> </ul> <p> the issue must be fixed by providing a specialized version of </p> <pre class="wiki">detail::matrix_resize_preserve&lt;layout_type&gt;(old, temp) </pre> Ticket