aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-04-22 14:31:39 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-04-22 14:31:39 -0400
commitbc22f4da9d9c5de308e3ab9ab71ae92928438edf (patch)
tree2fee152608590df29d530ff5bc8c4fad845f6bac /test
parent00c716d20e138c5f849851c059a7e1c1ac6da8c6 (diff)
* fix Eigen2Support, was not including VectorBlock.h
* move the corners support stuff to a new Block.h there * expand the unit test
Diffstat (limited to 'test')
-rw-r--r--test/eigen2support.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/eigen2support.cpp b/test/eigen2support.cpp
index de39be5c8..f8d601984 100644
--- a/test/eigen2support.cpp
+++ b/test/eigen2support.cpp
@@ -51,8 +51,12 @@ template<typename MatrixType> void eigen2support(const MatrixType& m)
m3.cwise() -= s1;
VERIFY_IS_APPROX(m3, m1.cwise() - s1);
-
-
+ VERIFY_IS_EQUAL((m1.corner(TopLeft,1,1)), (m1.block(0,0,1,1)));
+ VERIFY_IS_EQUAL((m1.template corner<1,1>(TopLeft)), (m1.template block<1,1>(0,0)));
+ VERIFY_IS_EQUAL((m1.col(0).start(1)), (m1.col(0).segment(0,1)));
+ VERIFY_IS_EQUAL((m1.col(0).template start<1>()), (m1.col(0).segment(0,1)));
+ VERIFY_IS_EQUAL((m1.col(0).end(1)), (m1.col(0).segment(rows-1,1)));
+ VERIFY_IS_EQUAL((m1.col(0).template end<1>()), (m1.col(0).segment(rows-1,1)));
}
void test_eigen2support()