mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-23 16:12:09 +00:00
- fix and close #1237
- symmetric resize used wrong internal resize method -- Dese und die folgenden Zeilen werden ignoriert -- M symmetric.hpp
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#define _BOOST_UBLAS_SYMMETRIC_
|
||||
|
||||
#include <boost/numeric/ublas/matrix.hpp>
|
||||
#include <boost/numeric/ublas/triangular.hpp>
|
||||
#include <boost/numeric/ublas/detail/temporary.hpp>
|
||||
|
||||
// Iterators based on ideas of Jeremy Siek
|
||||
@@ -121,7 +122,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
void resize (size_type size, bool preserve = true) {
|
||||
if (preserve) {
|
||||
self_type temporary (size, size);
|
||||
detail::matrix_resize_preserve<layout_type> (*this, temporary);
|
||||
detail::matrix_resize_preserve<layout_type, triangular_type> (*this, temporary);
|
||||
}
|
||||
else {
|
||||
data ().resize (triangular_type::packed_size (layout_type (), size, size));
|
||||
|
||||
Reference in New Issue
Block a user