From af131fe770c01772b91f70dea7f6a35838c54e87 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 16 Mar 2008 21:04:33 +0000 Subject: [PATCH] update to fix compilation --- doc/echelon.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/echelon.cpp b/doc/echelon.cpp index ca0934983..677fd4af7 100644 --- a/doc/echelon.cpp +++ b/doc/echelon.cpp @@ -4,8 +4,8 @@ USING_PART_OF_NAMESPACE_EIGEN namespace Eigen { -template -void echelon(MatrixBase& m) +template +void echelon(MatrixBase& m) { const int N = std::min(m.rows(), m.cols()); @@ -23,22 +23,22 @@ void echelon(MatrixBase& m) } } -template -void doSomeRankPreservingOperations(MatrixBase& m) +template +void doSomeRankPreservingOperations(MatrixBase& m) { for(int a = 0; a < 3*(m.rows()+m.cols()); a++) { - double d = Eigen::random(-1,1); - int i = Eigen::random(0,m.rows()-1); // i is a random row number + double d = Eigen::ei_random(-1,1); + int i = Eigen::ei_random(0,m.rows()-1); // i is a random row number int j; do { - j = Eigen::random(0,m.rows()-1); + j = Eigen::ei_random(0,m.rows()-1); } while (i==j); // j is another one (must be different) m.row(i) += d * m.row(j); - i = Eigen::random(0,m.cols()-1); // i is a random column number + i = Eigen::ei_random(0,m.cols()-1); // i is a random column number do { - j = Eigen::random(0,m.cols()-1); + j = Eigen::ei_random(0,m.cols()-1); } while (i==j); // j is another one (must be different) m.col(i) += d * m.col(j); }