aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/MatrixFunctions
diff options
context:
space:
mode:
authorGravatar Chen-Pang He <jdh8@ms63.hinet.net>2013-07-11 02:31:13 +0800
committerGravatar Chen-Pang He <jdh8@ms63.hinet.net>2013-07-11 02:31:13 +0800
commita992fa74ebb560d6c25a2debf8a1460eb326b8f8 (patch)
treefa80395573dc1410a65d5e7fbfa5152b1d6f25b9 /unsupported/Eigen/src/MatrixFunctions
parent4466875d544c7a279b84fabb3b67a73da6b15487 (diff)
Make non-conversion unary constructors explicit.
Diffstat (limited to 'unsupported/Eigen/src/MatrixFunctions')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h4
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h2
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h12
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.
*