fix a couple of compilations issues

This commit is contained in:
Gael Guennebaud
2009-08-06 14:10:02 +02:00
parent c2861dd41a
commit 1d4fea48b5
8 changed files with 21 additions and 22 deletions

View File

@@ -174,8 +174,10 @@ umeyama(const MatrixBase<Derived>& src, const MatrixBase<OtherDerived>& dst, boo
const Scalar c = 1/src_var * svd.singularValues().dot(S);
// Eq. (41)
// TODO: lazyness does not make much sense over here, right?
Rt.col(m).segment(0,m) = dst_mean - c*Rt.block(0,0,m,m)*src_mean;
// Note that we first assign dst_mean to the destination so that there no need
// for a temporary.
Rt.col(m).start(m) = dst_mean;
Rt.col(m).start(m) -= (c*Rt.corner(TopLeft,m,m)*src_mean).lazy();
if (with_scaling) Rt.block(0,0,m,m) *= c;