aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/householder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/householder.cpp')
-rw-r--r--test/householder.cpp4
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);