make applyHouseholderOnTheRight take a row vector, not a column vector:

this is how it's used in practice.
This commit is contained in:
Benoit Jacob
2010-01-07 12:50:02 -05:00
parent c24de5b413
commit 82ec250a0f
2 changed files with 3 additions and 3 deletions

View File

@@ -116,10 +116,10 @@ void MatrixBase<Derived>::applyHouseholderOnTheRight(
{
Map<Matrix<Scalar, RowsAtCompileTime, 1, PlainMatrixType::Options, MaxRowsAtCompileTime, 1> > tmp(workspace,rows());
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(), cols()-1);
tmp.noalias() = right * essential.conjugate();
tmp.noalias() = right * essential.adjoint();
tmp += this->col(0);
this->col(0) -= tau * tmp;
right.noalias() -= tau * tmp * essential.transpose();
right.noalias() -= tau * tmp * essential;
}
#endif // EIGEN_HOUSEHOLDER_H