aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-05-09 13:57:06 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-05-09 13:57:06 +0100
commitdac4bb640a86a1e3ab7721f89654396458d94609 (patch)
tree453241b895f42ff1bdd20e09ec4b7fc96c01dd61 /unsupported/Eigen
parent837db08cbd41a3975b893fb231c28cdc88d4c606 (diff)
Fix compilation error under GCC 4.5.
That version is stricter in forcing function prototype and definition to match.
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h14
1 files 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 <typename SmallMatrixType>
static void solveAuxiliaryEquation(SmallMatrixType& X, const SmallMatrixType& A,