[mlpack-svn] r17000 - mlpack/trunk/src/mlpack/core/arma_extend
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Aug 11 15:47:02 EDT 2014
Author: rcurtin
Date: Mon Aug 11 15:47:02 2014
New Revision: 17000
Log:
Return *this for operator--().
Modified:
mlpack/trunk/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
Modified: mlpack/trunk/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/arma_extend/Mat_extra_meat.hpp (original)
+++ mlpack/trunk/src/mlpack/core/arma_extend/Mat_extra_meat.hpp Mon Aug 11 15:47:02 2014
@@ -28,8 +28,8 @@
: M(&it.M), current_pos(&it.M(it.row, it.col)), internal_col(it.col), internal_row(it.row)
{
// Nothing to do.
- }
-
+ }
+
template<typename eT>
@@ -99,6 +99,8 @@
internal_col--;
internal_row = M->n_rows - 1;
}
+
+ return *this;
}
@@ -176,7 +178,7 @@
{
return (rhs == current_pos);
}
-
+
template<typename eT>
@@ -212,7 +214,7 @@
{
return (&rhs.M(rhs.row, rhs.col) == current_pos);
}
-
+
template<typename eT>
@@ -305,6 +307,8 @@
internal_col--;
internal_row = M->n_rows - 1;
}
+
+ return *this;
}
@@ -318,7 +322,7 @@
--(*this);
return temp;
- }
+ }
@@ -327,7 +331,7 @@
Mat<eT>::row_col_iterator::operator==(const const_row_col_iterator& rhs) const
{
return (rhs.current_pos == current_pos);
- }
+ }
More information about the mlpack-svn
mailing list