aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_homogeneous.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-24 15:13:41 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-24 15:13:41 +0200
commit19f2f53e2c6cac602be479dae84837ab539329ce (patch)
tree3d6a540eabc3a7abc7ff709eec9fe5e8c2a34b85 /test/geo_homogeneous.cpp
parentd44fce501bf299692d578349b92c899c3f0d79cd (diff)
fix compilation when default to row major
Diffstat (limited to 'test/geo_homogeneous.cpp')
-rw-r--r--test/geo_homogeneous.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/geo_homogeneous.cpp b/test/geo_homogeneous.cpp
index 781913553..3162af831 100644
--- a/test/geo_homogeneous.cpp
+++ b/test/geo_homogeneous.cpp
@@ -32,7 +32,7 @@ template<typename Scalar,int Size> void homogeneous(void)
*/
typedef Matrix<Scalar,Size,Size> MatrixType;
- typedef Matrix<Scalar,Size,1> VectorType;
+ typedef Matrix<Scalar,Size,1, ColMajor> VectorType;
typedef Matrix<Scalar,Size+1,Size> HMatrixType;
typedef Matrix<Scalar,Size+1,1> HVectorType;
@@ -80,6 +80,7 @@ template<typename Scalar,int Size> void homogeneous(void)
VERIFY_IS_APPROX((v0.transpose().rowwise().homogeneous().eval()) * t2,
v0.transpose().rowwise().homogeneous() * t2);
+ m0.transpose().rowwise().homogeneous().eval();
VERIFY_IS_APPROX((m0.transpose().rowwise().homogeneous().eval()) * t2,
m0.transpose().rowwise().homogeneous() * t2);