aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/ProductEvaluators.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-09-14 18:31:29 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-09-14 18:31:29 +0200
commitfda680f9cf8e81f62ae815b700698958b7b0f027 (patch)
tree2c5b71a657a1e5a3c6fa1acd0a8954077c059379 /Eigen/src/Core/ProductEvaluators.h
parentdfc54e1bbf99a069146025677b70e38755383df9 (diff)
to evaluators: (Fix bug #822: outer products needed linear access, and add respective unit tests)
Diffstat (limited to 'Eigen/src/Core/ProductEvaluators.h')
-rw-r--r--Eigen/src/Core/ProductEvaluators.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h
index 8a63384a7..f880e7696 100644
--- a/Eigen/src/Core/ProductEvaluators.h
+++ b/Eigen/src/Core/ProductEvaluators.h
@@ -215,7 +215,7 @@ EIGEN_DONT_INLINE void outer_product_selector_run(Dst& dst, const Lhs &lhs, cons
// FIXME we should probably build an evaluator for dst and rhs
const Index cols = dst.cols();
for (Index j=0; j<cols; ++j)
- func(dst.col(j), rhs.coeff(j) * lhs);
+ func(dst.col(j), rhs.coeff(0,j) * lhs);
}
// Row major result
@@ -227,7 +227,7 @@ EIGEN_DONT_INLINE void outer_product_selector_run(Dst& dst, const Lhs &lhs, cons
// FIXME we should probably build an evaluator for dst and lhs
const Index rows = dst.rows();
for (Index i=0; i<rows; ++i)
- func(dst.row(i), lhs.coeff(i) * rhs);
+ func(dst.row(i), lhs.coeff(i,0) * rhs);
}
template<typename Lhs, typename Rhs>