aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/triangular.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 14:00:14 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 14:00:14 +0200
commit75487088486b7937664904cfb0abf0f8f9c56a26 (patch)
tree233af11bea15e81286a714562e423eb62f0b5d78 /test/triangular.cpp
parent9a6967d9ba662ed2f2916a2f3f3c246a553e98b2 (diff)
Silence index warnings in triangular unit test.
Silence index warnings in FFT module.
Diffstat (limited to 'test/triangular.cpp')
-rw-r--r--test/triangular.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/triangular.cpp b/test/triangular.cpp
index 12452515e..302984eb7 100644
--- a/test/triangular.cpp
+++ b/test/triangular.cpp
@@ -139,6 +139,7 @@ template<typename MatrixType> void triangular_square(const MatrixType& m)
template<typename MatrixType> void triangular_rect(const MatrixType& m)
{
+ typedef const typename MatrixType::Index Index;
typedef typename MatrixType::Scalar Scalar;
typedef typename NumTraits<Scalar>::Real RealScalar;
enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime };
@@ -146,8 +147,8 @@ template<typename MatrixType> void triangular_rect(const MatrixType& m)
typedef Matrix<Scalar, Rows, Rows> RMatrixType;
- int rows = m.rows();
- int cols = m.cols();
+ Index rows = m.rows();
+ Index cols = m.cols();
MatrixType m1 = MatrixType::Random(rows, cols),
m2 = MatrixType::Random(rows, cols),