mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Adapt changeset 51b3f558bb
to evaluators: (Fix bug #822: outer products needed linear access, and add respective unit tests)
This commit is contained in:
parent
dfc54e1bbf
commit
fda680f9cf
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user