diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-03-09 12:08:06 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-03-09 12:08:06 +0100 |
commit | 9b1ad5e5bd91db3e8417522d544198b84f5f1e68 (patch) | |
tree | d76890f554d57fd3f81e9c0de63ce3ab7b80997f /test | |
parent | fe9b7c2564755aadeeb2a8ecee3dd60d951c6ef9 (diff) |
rm cC++11 features
Diffstat (limited to 'test')
-rw-r--r-- | test/array.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/array.cpp b/test/array.cpp index 0f38aff65..2ff8b0b2f 100644 --- a/test/array.cpp +++ b/test/array.cpp @@ -175,6 +175,8 @@ template<typename ArrayType> void array_real(const ArrayType& m) m2 = ArrayType::Random(rows, cols), m3(rows, cols); + Scalar s1 = internal::random<Scalar>(); + // these tests are mostly to check possible compilation issues. VERIFY_IS_APPROX(m1.sin(), std::sin(m1)); VERIFY_IS_APPROX(m1.sin(), internal::sin(m1)); @@ -218,8 +220,8 @@ template<typename ArrayType> void array_real(const ArrayType& m) VERIFY_IS_APPROX(std::pow(m3,RealScalar(0.5)), m3.sqrt()); // scalar by array division - const auto t1 = (s1/m1).eval(); - const auto t2 = (s1 * m1.inverse()).eval(); + ArrayType t1 = s1/m1; + ArrayType t2 = s1 * m1.inverse(); VERIFY_IS_APPROX(s1/m1, s1 * m1.inverse()); } |