Remove useless explicit

This commit is contained in:
Gael Guennebaud 2015-12-11 11:11:19 +01:00
parent bcb4f126a7
commit 7385e6e2ef

5
Eigen/src/SparseLU/SparseLU.h Normal file → Executable file
View File

@ -101,7 +101,8 @@ class SparseLU : public SparseSolverBase<SparseLU<_MatrixType,_OrderingType> >,
{ {
initperfvalues(); initperfvalues();
} }
explicit SparseLU(const MatrixType& matrix):m_lastError(""),m_Ustore(0,0,0,0,0,0),m_symmetricmode(false),m_diagpivotthresh(1.0),m_detPermR(1) explicit SparseLU(const MatrixType& matrix)
: m_lastError(""),m_Ustore(0,0,0,0,0,0),m_symmetricmode(false),m_diagpivotthresh(1.0),m_detPermR(1)
{ {
initperfvalues(); initperfvalues();
compute(matrix); compute(matrix);
@ -719,7 +720,7 @@ template<typename MatrixLType, typename MatrixUType>
struct SparseLUMatrixUReturnType : internal::no_assignment_operator struct SparseLUMatrixUReturnType : internal::no_assignment_operator
{ {
typedef typename MatrixLType::Scalar Scalar; typedef typename MatrixLType::Scalar Scalar;
explicit SparseLUMatrixUReturnType(const MatrixLType& mapL, const MatrixUType& mapU) SparseLUMatrixUReturnType(const MatrixLType& mapL, const MatrixUType& mapU)
: m_mapL(mapL),m_mapU(mapU) : m_mapL(mapL),m_mapU(mapU)
{ } { }
Index rows() { return m_mapL.rows(); } Index rows() { return m_mapL.rows(); }