diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-01-07 12:50:02 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-01-07 12:50:02 -0500 |
commit | 82ec250a0f9abc11be71e8d0f92dc6f7284b91d0 (patch) | |
tree | 00c0ef82597bdef3cce33a06cfc6a9f854b3c7d8 /Eigen/src/Householder | |
parent | c24de5b413c0ea564a6324501094c00612aba758 (diff) |
make applyHouseholderOnTheRight take a row vector, not a column vector:
this is how it's used in practice.
Diffstat (limited to 'Eigen/src/Householder')
-rw-r--r-- | Eigen/src/Householder/Householder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h index 1e549633a..4b97dfee1 100644 --- a/Eigen/src/Householder/Householder.h +++ b/Eigen/src/Householder/Householder.h @@ -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 |