aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Assign.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-05-28 22:11:47 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-05-28 22:11:47 +0000
commit8711e26c8a691818c5aa2f3a024f8ada4b7129dc (patch)
tree65be892627bc2c1cc89f21e36f9d1e8125ebe440 /Eigen/src/Core/Assign.h
parent73084dc754a64a5ae5753ef119399ea7e45c0626 (diff)
* change Flagged to take into account NestByValue only
* bugfix in Assign and cache friendly product (weird that worked before) * improved argument evaluation in Product
Diffstat (limited to 'Eigen/src/Core/Assign.h')
-rw-r--r--Eigen/src/Core/Assign.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h
index 56f4c956e..bf5ede1bc 100644
--- a/Eigen/src/Core/Assign.h
+++ b/Eigen/src/Core/Assign.h
@@ -208,12 +208,12 @@ struct ei_assignment_impl<Derived, OtherDerived, true>
for ( ; index<alignedSize ; index+=ei_packet_traits<typename Derived::Scalar>::size)
{
// FIXME the following is not really efficient
- int i = index/dst.rows();
- int j = index%dst.rows();
+ int i = index/dst.cols();
+ int j = index%dst.cols();
dst.template writePacketCoeff<Aligned>(i, j, src.template packetCoeff<Aligned>(i, j));
}
- for(int i = alignedSize/dst.rows(); i < dst.rows(); i++)
- for(int j = alignedSize%dst.rows(); j < dst.cols(); j++)
+ for(int i = alignedSize/dst.cols(); i < dst.rows(); i++)
+ for(int j = alignedSize%dst.cols(); j < dst.cols(); j++)
dst.coeffRef(i, j) = src.coeff(i, j);
}
else