aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/MatrixFunctions
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-02 22:40:36 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-02 22:40:36 +0200
commit8f4d93a4b7b15fdd240f4c3c283128cead6eae16 (patch)
treec49aa581f3fc6e693952b6a64291ad8a83a6466c /unsupported/Eigen/src/MatrixFunctions
parent51b361b3bb40d547ecf39e4c2e90a806c56c9751 (diff)
Fix compilation.
The Matrix is required to be mutable but it also needs to be a reference and temporaries do not bind to non-const references - thus we need a hack and cast away the constness.
Diffstat (limited to 'unsupported/Eigen/src/MatrixFunctions')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index f619d8ae5..a35c11be5 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -426,7 +426,6 @@ struct matrix_function_compute<MatrixType, 1>
static void run(const MatrixType& A, AtomicType& atomic, ResultType &result)
{
typedef internal::traits<MatrixType> Traits;
- typedef typename MatrixType::Scalar Scalar;
typedef typename MatrixType::Index Index;
// compute Schur decomposition of A