diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 18:59:15 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 18:59:15 +0200 |
commit | cb11f2f8a644acbf9a408e8eef737bec122307a0 (patch) | |
tree | febc2e53cf4ca10309ef0901eadcbd9625f31b32 /test/householder.cpp | |
parent | f1679c7185471289afaf702a45e336849d20a81a (diff) |
Fix compilation of some tests as well as more warnings.
Diffstat (limited to 'test/householder.cpp')
-rw-r--r-- | test/householder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/householder.cpp b/test/householder.cpp index 94ea5c602..1f22c6c53 100644 --- a/test/householder.cpp +++ b/test/householder.cpp @@ -94,8 +94,8 @@ template<typename MatrixType> void householder(const MatrixType& m) // test householder sequence on the left with a shift - int shift = ei_random(0, std::max(rows-2,0)); - int brows = rows - shift; + Index shift = ei_random<Index>(0, std::max<Index>(rows-2,0)); + Index brows = rows - shift; m1.setRandom(rows, cols); HBlockMatrixType hbm = m1.block(shift,0,brows,cols); HouseholderQR<HBlockMatrixType> qr(hbm); |