diff --git a/src/Core/Column.h b/src/Core/Column.h index 4ca353540..54fe4cf9a 100644 --- a/src/Core/Column.h +++ b/src/Core/Column.h @@ -53,14 +53,14 @@ template class Column int _rows() const { return m_matrix.rows(); } int _cols() const { return 1; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { EIGEN_UNUSED(col); EIGEN_CHECK_ROW_RANGE(*this, row); return m_matrix.write(row, m_col); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { EIGEN_UNUSED(col); EIGEN_CHECK_ROW_RANGE(*this, row); diff --git a/src/Core/DynBlock.h b/src/Core/DynBlock.h index ea9be7680..8a52b4c58 100644 --- a/src/Core/DynBlock.h +++ b/src/Core/DynBlock.h @@ -59,12 +59,12 @@ template class DynBlock int _rows() const { return m_blockRows; } int _cols() const { return m_blockCols; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { return m_matrix.write(row + m_startRow, col + m_startCol); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { return m_matrix.read(row + m_startRow, col + m_startCol); } diff --git a/src/Core/Minor.h b/src/Core/Minor.h index f39913d57..9c4116adb 100644 --- a/src/Core/Minor.h +++ b/src/Core/Minor.h @@ -41,7 +41,7 @@ template class Minor MatrixType::ColsAtCompileTime - 1 : Dynamic; Minor(const MatRef& matrix, - int row, int col = 0) + int row, int col) : m_matrix(matrix), m_row(row), m_col(col) { EIGEN_CHECK_RANGES(matrix, row, col); @@ -58,12 +58,12 @@ template class Minor int _rows() const { return m_matrix.rows() - 1; } int _cols() const { return m_matrix.cols() - 1; } - Scalar& _write(int row, int col=0) + Scalar& _write(int row, int col) { return m_matrix.write(row + (row >= m_row), col + (col >= m_col)); } - Scalar _read(int row, int col=0) const + Scalar _read(int row, int col) const { return m_matrix.read(row + (row >= m_row), col + (col >= m_col)); }