diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 15:52:34 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 15:52:34 +0200 |
commit | e402d34407226d9c2c5dfc14ef5d6dbf53ee3c8e (patch) | |
tree | bd16ef72ebb99ed858590b1dc2c16174e9a30dd3 /test | |
parent | 75487088486b7937664904cfb0abf0f8f9c56a26 (diff) |
More Index realted warnings.
Diffstat (limited to 'test')
-rw-r--r-- | test/stdvector_overload.cpp | 4 | ||||
-rw-r--r-- | test/svd.cpp | 4 | ||||
-rw-r--r-- | test/swap.cpp | 4 | ||||
-rw-r--r-- | test/triangular.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/stdvector_overload.cpp b/test/stdvector_overload.cpp index 86f4308ad..898719a26 100644 --- a/test/stdvector_overload.cpp +++ b/test/stdvector_overload.cpp @@ -43,8 +43,8 @@ EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Quaterniond) template<typename MatrixType> void check_stdvector_matrix(const MatrixType& m) { - int rows = m.rows(); - int cols = m.cols(); + typename MatrixType::Index rows = m.rows(); + typename MatrixType::Index cols = m.cols(); MatrixType x = MatrixType::Random(rows,cols), y = MatrixType::Random(rows,cols); std::vector<MatrixType> v(10, MatrixType(rows,cols)), w(20, y); v[5] = x; diff --git a/test/svd.cpp b/test/svd.cpp index 9f3072d3b..fbeba795b 100644 --- a/test/svd.cpp +++ b/test/svd.cpp @@ -31,8 +31,8 @@ template<typename MatrixType> void svd(const MatrixType& m) /* this test covers the following files: SVD.h */ - int rows = m.rows(); - int cols = m.cols(); + typename MatrixType::Index rows = m.rows(); + typename MatrixType::Index cols = m.cols(); typedef typename MatrixType::Scalar Scalar; typedef typename NumTraits<Scalar>::Real RealScalar; diff --git a/test/swap.cpp b/test/swap.cpp index c11f0fec0..74543a662 100644 --- a/test/swap.cpp +++ b/test/swap.cpp @@ -43,8 +43,8 @@ template<typename MatrixType> void swap(const MatrixType& m) typedef typename MatrixType::Scalar Scalar; ei_assert((!ei_is_same_type<MatrixType,OtherMatrixType>::ret)); - int rows = m.rows(); - int cols = m.cols(); + typename MatrixType::Index rows = m.rows(); + typename MatrixType::Index cols = m.cols(); // construct 3 matrix guaranteed to be distinct MatrixType m1 = MatrixType::Random(rows,cols); diff --git a/test/triangular.cpp b/test/triangular.cpp index 302984eb7..673a3d25f 100644 --- a/test/triangular.cpp +++ b/test/triangular.cpp @@ -34,8 +34,8 @@ template<typename MatrixType> void triangular_square(const MatrixType& m) RealScalar largerEps = 10*test_precision<RealScalar>(); - int rows = m.rows(); - int cols = m.cols(); + typename MatrixType::Index rows = m.rows(); + typename MatrixType::Index cols = m.cols(); MatrixType m1 = MatrixType::Random(rows, cols), m2 = MatrixType::Random(rows, cols), |