From 86789786d98d84fc98dcf79b27ee2bc3fc1b3253 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 13 Jul 2005 06:16:25 +0000 Subject: [PATCH] FIX added diagonal_matrix array_type constructor - Thanks Vardan [SVN r30034] --- include/boost/numeric/ublas/banded.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/numeric/ublas/banded.hpp b/include/boost/numeric/ublas/banded.hpp index 9483a6cc..735caade 100644 --- a/include/boost/numeric/ublas/banded.hpp +++ b/include/boost/numeric/ublas/banded.hpp @@ -972,6 +972,9 @@ namespace boost { namespace numeric { namespace ublas { diagonal_matrix (size_type size): matrix_type (size, size) {} BOOST_UBLAS_INLINE + diagonal_matrix (size_type size, const array_type& data): + matrix_type (size, size, 0, 0, data) {} + BOOST_UBLAS_INLINE diagonal_matrix (size_type size1, size_type size2): matrix_type (size1, size2) {} template