diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-12-31 17:11:17 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-12-31 17:11:17 +0100 |
commit | 25efcdd0426545fb4c9a7f5af039827ee174809e (patch) | |
tree | bc786cbb3b13cbb3ce751f8743b1da5dccbef967 /Eigen | |
parent | 13867c15cca7716ff36c2ee2c9b37ebe2721cd9a (diff) |
fix sparse time dense product with a rowmajor lhs
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Sparse/SparseDenseProduct.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Sparse/SparseDenseProduct.h b/Eigen/src/Sparse/SparseDenseProduct.h index 8cc39c8fb..9e9da983a 100644 --- a/Eigen/src/Sparse/SparseDenseProduct.h +++ b/Eigen/src/Sparse/SparseDenseProduct.h @@ -169,7 +169,7 @@ class SparseTimeDenseProduct enum { LhsIsRowMajor = (_Lhs::Flags&RowMajorBit)==RowMajorBit }; for(Index j=0; j<m_lhs.outerSize(); ++j) { - typename Rhs::Scalar rhs_j = alpha * m_rhs.coeff(j,0); + typename Rhs::Scalar rhs_j = alpha * m_rhs.coeff(LhsIsRowMajor ? 0 : j,0); Block<Dest,1,Dest::ColsAtCompileTime> dest_j(dest.row(LhsIsRowMajor ? j : 0)); for(LhsInnerIterator it(m_lhs,j); it ;++it) { |