diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-12-10 22:00:35 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-12-10 22:00:35 +0100 |
commit | 7caf751fddf51aacb1a2fbea8f2a92bd3492b0e1 (patch) | |
tree | 2936cb411e9cbc9f92da91f9d53c886530e7b1e3 /test | |
parent | 8e05f9cfa1538d76a9d3e01e08ba565bd581806a (diff) |
adapt select, replicate and reverse
Diffstat (limited to 'test')
-rw-r--r-- | test/geo_transformations.cpp | 6 | ||||
-rw-r--r-- | test/linearstructure.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index 2477ea925..bcef908d8 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -128,7 +128,7 @@ template<typename Scalar, int Mode> void transformations(void) t0.pretranslate(v0); t0.scale(v1); t1.linear() = q1.conjugate().toRotationMatrix(); - t1.prescale(v1.cwise().inverse()); + t1.prescale(v1.cwiseInverse()); t1.translate(-v0); VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); @@ -183,7 +183,7 @@ template<typename Scalar, int Mode> void transformations(void) Transform3 t6(sv3); t4 = sv3; VERIFY_IS_APPROX(t6.matrix(), t4.matrix()); - t4.scale(v3.cwise().inverse()); + t4.scale(v3.cwiseInverse()); VERIFY_IS_APPROX(t4.matrix(), MatrixType::Identity()); t4 *= sv3; VERIFY_IS_APPROX(t6.matrix(), t4.matrix()); @@ -213,7 +213,7 @@ template<typename Scalar, int Mode> void transformations(void) t21.setIdentity(); t21.linear() = Rotation2D<Scalar>(-a).toRotationMatrix(); VERIFY( (t20.fromPositionOrientationScale(v20,a,v21) - * (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()) ); + * (t21.prescale(v21.cwiseInverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()) ); // Transform - new API // 3D diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index f2ffc33bd..3e570f2a0 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -79,7 +79,7 @@ template<typename MatrixType> void linearStructure(const MatrixType& m) // use .block to disable vectorization and compare to the vectorized version VERIFY_IS_APPROX(m1+m1.block(0,0,rows,cols), m1+m1); - VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); + VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), m1.cwiseProduct(m1)); VERIFY_IS_APPROX(m1 - m1.block(0,0,rows,cols), m1 - m1); VERIFY_IS_APPROX(m1.block(0,0,rows,cols) * s1, m1 * s1); } |