From dac4bb640a86a1e3ab7721f89654396458d94609 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Mon, 9 May 2011 13:57:06 +0100 Subject: [PATCH] Fix compilation error under GCC 4.5. That version is stricter in forcing function prototype and definition to match. --- .../Eigen/src/MatrixFunctions/MatrixSquareRoot.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h b/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h index e654a94f6..4f5f5c22b 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h @@ -76,11 +76,15 @@ private: void computeDiagonalPartOfSqrt(MatrixType& sqrtT, const MatrixType& T); void computeOffDiagonalPartOfSqrt(MatrixType& sqrtT, const MatrixType& T); - void compute2x2diagonalBlock(MatrixType& sqrtT, const MatrixType& T, Index i); - void compute1x1offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, Index i, Index j); - void compute1x2offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, Index i, Index j); - void compute2x1offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, Index i, Index j); - void compute2x2offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, Index i, Index j); + void compute2x2diagonalBlock(MatrixType& sqrtT, const MatrixType& T, typename MatrixType::Index i); + void compute1x1offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, + typename MatrixType::Index i, typename MatrixType::Index j); + void compute1x2offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, + typename MatrixType::Index i, typename MatrixType::Index j); + void compute2x1offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, + typename MatrixType::Index i, typename MatrixType::Index j); + void compute2x2offDiagonalBlock(MatrixType& sqrtT, const MatrixType& T, + typename MatrixType::Index i, typename MatrixType::Index j); template static void solveAuxiliaryEquation(SmallMatrixType& X, const SmallMatrixType& A,