diff options
3 files changed, 9 insertions, 9 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index 221ec3115..750b0b989 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -32,7 +32,7 @@ class MatrixExponential : internal::noncopyable * * \param[in] M matrix whose exponential is to be computed. */ - MatrixExponential(const MatrixType &M); + explicit MatrixExponential(const MatrixType &M); /** \brief Computes the matrix exponential. * @@ -415,7 +415,7 @@ template<typename Derived> struct MatrixExponentialReturnValue * \param[in] src %Matrix (expression) forming the argument of the * matrix exponential. */ - MatrixExponentialReturnValue(const Derived& src) : m_src(src) { } + explicit MatrixExponentialReturnValue(const Derived& src) : m_src(src) { } /** \brief Compute the matrix exponential. * diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h index 32ec385e0..33cfadfb4 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h @@ -425,7 +425,7 @@ public: * * \param[in] A %Matrix (expression) forming the argument of the matrix logarithm. */ - MatrixLogarithmReturnValue(const Derived& A) : m_A(A) { } + explicit MatrixLogarithmReturnValue(const Derived& A) : m_A(A) { } /** \brief Compute the matrix logarithm. * diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h b/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h index c405bfd61..0cd39ebe4 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h @@ -36,7 +36,7 @@ class MatrixSquareRootQuasiTriangular : internal::noncopyable * The class stores a reference to \p A, so it should not be * changed (or destroyed) before compute() is called. */ - MatrixSquareRootQuasiTriangular(const MatrixType& A) + explicit MatrixSquareRootQuasiTriangular(const MatrixType& A) : m_A(A) { eigen_assert(A.rows() == A.cols()); @@ -256,7 +256,7 @@ template <typename MatrixType> class MatrixSquareRootTriangular : internal::noncopyable { public: - MatrixSquareRootTriangular(const MatrixType& A) + explicit MatrixSquareRootTriangular(const MatrixType& A) : m_A(A) { eigen_assert(A.rows() == A.cols()); @@ -321,7 +321,7 @@ class MatrixSquareRoot * The class stores a reference to \p A, so it should not be * changed (or destroyed) before compute() is called. */ - MatrixSquareRoot(const MatrixType& A); + explicit MatrixSquareRoot(const MatrixType& A); /** \brief Compute the matrix square root * @@ -341,7 +341,7 @@ class MatrixSquareRoot<MatrixType, 0> { public: - MatrixSquareRoot(const MatrixType& A) + explicit MatrixSquareRoot(const MatrixType& A) : m_A(A) { eigen_assert(A.rows() == A.cols()); @@ -374,7 +374,7 @@ class MatrixSquareRoot<MatrixType, 1> : internal::noncopyable { public: - MatrixSquareRoot(const MatrixType& A) + explicit MatrixSquareRoot(const MatrixType& A) : m_A(A) { eigen_assert(A.rows() == A.cols()); @@ -422,7 +422,7 @@ template<typename Derived> class MatrixSquareRootReturnValue * \param[in] src %Matrix (expression) forming the argument of the * matrix square root. */ - MatrixSquareRootReturnValue(const Derived& src) : m_src(src) { } + explicit MatrixSquareRootReturnValue(const Derived& src) : m_src(src) { } /** \brief Compute the matrix square root. * |