aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/umeyama.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2009-05-27 19:24:05 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2009-05-27 19:24:05 +0200
commit4d1e492c00c245b2cf44d016d79c4ba5f0d3d396 (patch)
tree2209174dae4a6d103ae42179a0c5fb2d6f3465fb /test/umeyama.cpp
parent7a7a3f35700e591c43df39b8a3f5cf9ab0c2fa3d (diff)
* Umeyama has now similar performance for RowMajor and ColMajor layouts.
* Fixed a bug in umeyama for fixed size matrices. * Fixed the umeyama unit test for fixed size matrices. * Added XprHelper::ei_plain_matrix_type_row_major.
Diffstat (limited to 'test/umeyama.cpp')
-rw-r--r--test/umeyama.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/umeyama.cpp b/test/umeyama.cpp
index 216f4a72e..94198ae44 100644
--- a/test/umeyama.cpp
+++ b/test/umeyama.cpp
@@ -168,7 +168,10 @@ void run_fixed_size_test(int num_elements)
MatrixX dst = (cR_t*src).lazy();
- HomMatrix cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements));
+ Block<MatrixX, Dimension, Dynamic> src_block(src,0,0,dim,num_elements);
+ Block<MatrixX, Dimension, Dynamic> dst_block(dst,0,0,dim,num_elements);
+
+ HomMatrix cR_t_umeyama = umeyama(src_block, dst_block);
const Scalar error = ( cR_t_umeyama*src - dst ).cwise().square().sum();