bugfix in inner-product specialization,

compilation fix in stable norm,
optimize apply householder
This commit is contained in:
Gael Guennebaud
2009-08-15 13:12:50 +02:00
parent 7b60713e87
commit 13a8956188
3 changed files with 10 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ class GeneralProduct<Lhs, Rhs, InnerProduct>
template<typename Dest> void scaleAndAddTo(Dest& dst, Scalar alpha) const
{
ei_assert(dst.rows()==1 && dst.cols()==1);
dst.coeffRef(0,0) += alpha * (m_lhs.cwise()*m_rhs).sum();
dst.coeffRef(0,0) += alpha * (m_lhs.transpose().cwise()*m_rhs).sum();
}
};