remove useless default argument values

This commit is contained in:
Benoit Jacob 2007-12-05 07:44:57 +00:00
parent 1a94c28bfe
commit b569216dc3
3 changed files with 7 additions and 7 deletions

View File

@ -53,14 +53,14 @@ template<typename MatrixType> 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);

View File

@ -59,12 +59,12 @@ template<typename MatrixType> 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);
}

View File

@ -41,7 +41,7 @@ template<typename MatrixType> 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<typename MatrixType> 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));
}