better fix for (v * v') * v, we still have to find a way to reorder it

This commit is contained in:
Gael Guennebaud
2009-10-01 13:27:03 +02:00
parent 5409ce1625
commit 9a3cae4655
3 changed files with 7 additions and 11 deletions

View File

@@ -135,7 +135,7 @@ struct ProductReturnType<Lhs,Rhs,UnrolledProduct>
{
typedef typename ei_nested<Lhs,Rhs::ColsAtCompileTime>::type LhsNested;
typedef typename ei_nested<Rhs,Lhs::RowsAtCompileTime>::type RhsNested;
typedef GeneralProduct<Lhs, Rhs, UnrolledProduct> Type;
typedef GeneralProduct<LhsNested, RhsNested, UnrolledProduct> Type;
};
@@ -212,11 +212,6 @@ class GeneralProduct<Lhs, Rhs, OuterProduct>
ei_outer_product_selector<(int(Dest::Flags)&RowMajorBit) ? RowMajor : ColMajor>::run(*this, dest, alpha);
}
Scalar coeff(int row, int col) const
{
return this->lhs().coeff(row) * this->rhs().coeff(col);
}
private:
GeneralProduct& operator=(const GeneralProduct&);
};