aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-10-01 13:27:03 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-10-01 13:27:03 +0200
commit9a3cae465510fad8f671724d71ef59a4a8199125 (patch)
treeff61d999ae7934a0d3d1cbc6c3012df31958a6ea /Eigen/src
parent5409ce1625431f9f8149e66028db17e8515ab166 (diff)
better fix for (v * v') * v, we still have to find a way to reorder it
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/Product.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h
index 3c5c56f1c..cc751650d 100644
--- a/Eigen/src/Core/Product.h
+++ b/Eigen/src/Core/Product.h
@@ -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&);
};