aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/basicstuff.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-05-08 13:45:31 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-05-08 13:45:31 -0400
commitbfdc1c49730c79e6058ba1506628341559670c25 (patch)
treecff450947e3fe4dabc07a382061c4664970a3a90 /test/basicstuff.cpp
parentd03779f75f3a29b6cc76299f511aefc902771e4c (diff)
introduce DenseCoeffsBase: this is where the coeff / coeffRef / etc... methods go.
Rationale: coeffRef() methods should only exist when we have DirectAccess. So a natural thing to do would have been to use enable_if, but since there are many methods it made more sense to do the "enable_if" for the whole group by introducing a new class. And that also that the benefit of not changing method prototypes.
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r--test/basicstuff.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp
index 7244dff9d..7ef127ac2 100644
--- a/test/basicstuff.cpp
+++ b/test/basicstuff.cpp
@@ -152,6 +152,7 @@ template<typename MatrixType> void basicStuffComplex(const MatrixType& m)
VERIFY(!static_cast<const MatrixType&>(cm).imag().isZero());
}
+#ifdef EIGEN_TEST_PART_2
void casting()
{
Matrix4f m = Matrix4f::Random(), m2;
@@ -160,6 +161,7 @@ void casting()
m2 = m.cast<float>(); // check the specialization when NewType == Type
VERIFY(m.isApprox(m2));
}
+#endif
void test_basicstuff()
{