From ab6bb8998031de7eb6059c7b4d71b0d2b60a7828 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 7 Jun 2017 10:51:23 +0200 Subject: [PATCH] Fix compilation of matrix log with Map as input (grafted from 26e8f9171eb07e188af45d7583b03c5be40a5f48 ) --- .../Eigen/src/MatrixFunctions/MatrixFunction.h | 11 +++++------ .../Eigen/src/MatrixFunctions/MatrixLogarithm.h | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h index db2449d02..3f7d77710 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h @@ -398,8 +398,8 @@ struct matrix_function_compute template struct matrix_function_compute { - template - static void run(const MatrixType& A, AtomicType& atomic, ResultType &result) + template + static void run(const MatA& A, AtomicType& atomic, ResultType &result) { typedef internal::traits Traits; typedef typename Traits::Scalar Scalar; @@ -422,11 +422,10 @@ struct matrix_function_compute template struct matrix_function_compute { - template - static void run(const MatrixType& A, AtomicType& atomic, ResultType &result) + template + static void run(const MatA& A, AtomicType& atomic, ResultType &result) { typedef internal::traits Traits; - typedef typename MatrixType::Index Index; // compute Schur decomposition of A const ComplexSchur schurOfA(A); @@ -514,7 +513,7 @@ template class MatrixFunctionReturnValue typedef internal::MatrixFunctionAtomic AtomicType; AtomicType atomic(m_f); - internal::matrix_function_compute::run(m_A, atomic, result); + internal::matrix_function_compute::run(m_A, atomic, result); } Index rows() const { return m_A.rows(); } diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h index 1acfbed9e..ff8f6e732 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h @@ -339,7 +339,7 @@ public: typedef internal::MatrixLogarithmAtomic AtomicType; AtomicType atomic; - internal::matrix_function_compute::run(m_A, atomic, result); + internal::matrix_function_compute::run(m_A, atomic, result); } Index rows() const { return m_A.rows(); }