aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_vector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/sparse_vector.cpp')
-rw-r--r--test/sparse_vector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sparse_vector.cpp b/test/sparse_vector.cpp
index b3249915e..5be4f5d9a 100644
--- a/test/sparse_vector.cpp
+++ b/test/sparse_vector.cpp
@@ -26,8 +26,8 @@
template<typename Scalar> void sparse_vector(int rows, int cols)
{
- double densityMat = std::max(8./(rows*cols), 0.01);
- double densityVec = std::max(8./float(rows), 0.1);
+ double densityMat = (std::max)(8./(rows*cols), 0.01);
+ double densityVec = (std::max)(8./float(rows), 0.1);
typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix;
typedef Matrix<Scalar,Dynamic,1> DenseVector;
typedef SparseVector<Scalar> SparseVectorType;