mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-26 17:12:10 +00:00
FIX type i_ instead of j_ in ref()
svn path=/trunk/boost/boost/numeric/ublas/; revision=31372
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user