mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
remove useless default argument values
This commit is contained in:
parent
1a94c28bfe
commit
b569216dc3
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user