From 99bb29abcfc4a62b8d099da6fb045f8d9a22cdf3 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Thu, 22 Oct 2009 10:11:26 +0200 Subject: demeaning with colwise expression --- Eigen/src/Geometry/Umeyama.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Eigen') diff --git a/Eigen/src/Geometry/Umeyama.h b/Eigen/src/Geometry/Umeyama.h index 7652aa92e..d0f36d2c9 100644 --- a/Eigen/src/Geometry/Umeyama.h +++ b/Eigen/src/Geometry/Umeyama.h @@ -131,17 +131,11 @@ umeyama(const MatrixBase& src, const MatrixBase& dst, boo const VectorType dst_mean = dst.rowwise().sum() * one_over_n; // demeaning of src and dst points - RowMajorMatrixType src_demean(m,n); - RowMajorMatrixType dst_demean(m,n); - for (int i=0; i