From e45e2d179240705a06e754f4861dc5bf9d0eeec4 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Mon, 21 Mar 2005 16:15:28 +0000 Subject: [PATCH] =?UTF-8?q?FIX=20partially-filled=20index=20pointer=20arra?= =?UTF-8?q?y=20=20thanks=20Andreas=20Kl=C3=83=C2=B6ckner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [SVN r27754] --- include/boost/numeric/ublas/operation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/numeric/ublas/operation.hpp b/include/boost/numeric/ublas/operation.hpp index 0dd110cb..6da49676 100644 --- a/include/boost/numeric/ublas/operation.hpp +++ b/include/boost/numeric/ublas/operation.hpp @@ -38,7 +38,7 @@ namespace boost { namespace numeric { namespace ublas { typedef typename V::size_type size_type; typedef typename V::value_type value_type; - for (size_type i = 0; i < e1.size1 (); ++ i) { + for (size_type i = 0; i < e1.filled1 (); ++ i) { size_type begin = e1.index1_data () [i]; size_type end = e1.index1_data () [i + 1]; value_type t (v (i)); @@ -57,7 +57,7 @@ namespace boost { namespace numeric { namespace ublas { V &v, column_major_tag) { typedef typename V::size_type size_type; - for (size_type j = 0; j < e1.size2 (); ++ j) { + for (size_type j = 0; j < e1.filled1 (); ++ j) { size_type begin = e1.index1_data () [j]; size_type end = e1.index1_data () [j + 1]; for (size_type i = begin; i < end; ++ i)