From 73886d5cdc09fb647b39eac87566bda3d22428ae Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Tue, 18 Oct 2005 13:16:04 +0000 Subject: [PATCH] FIX type i_ instead of j_ in ref() svn path=/trunk/boost/boost/numeric/ublas/; revision=31372 --- include/boost/numeric/ublas/matrix_sparse.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/numeric/ublas/matrix_sparse.hpp b/include/boost/numeric/ublas/matrix_sparse.hpp index 9ef8e9de..6788dc0b 100644 --- a/include/boost/numeric/ublas/matrix_sparse.hpp +++ b/include/boost/numeric/ublas/matrix_sparse.hpp @@ -143,7 +143,7 @@ namespace boost { namespace numeric { namespace ublas { // Conversion to reference - may be invalidated BOOST_UBLAS_INLINE value_type& ref () const { - const pointer p = (*this) ().find_element (i_, i_); + const pointer p = (*this) ().find_element (i_, j_); if (!p) return (*this) ().insert_element (i_, j_, value_type/*zero*/()); else