aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/jacobisvd.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-08-19 14:18:05 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-08-19 14:18:05 +0200
commit42e2578ef9fcbb62ad6e07933ccf531f6f7cd1b3 (patch)
tree90cef174284cad35f0d13d4b991db83335554caf /test/jacobisvd.cpp
parent5734ee6df42991e59609ffd26aaeb3c7aacd61e2 (diff)
the min/max macros to detect unprotected min/max were undefined by some std header,
so let's declare them after and do the respective fixes ;)
Diffstat (limited to 'test/jacobisvd.cpp')
-rw-r--r--test/jacobisvd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp
index 92f07961b..14c965133 100644
--- a/test/jacobisvd.cpp
+++ b/test/jacobisvd.cpp
@@ -66,7 +66,7 @@ void jacobisvd_compare_to_full(const MatrixType& m,
typedef typename MatrixType::Index Index;
Index rows = m.rows();
Index cols = m.cols();
- Index diagSize = std::min(rows, cols);
+ Index diagSize = (std::min)(rows, cols);
JacobiSVD<MatrixType, QRPreconditioner> svd(m, computationOptions);