Bug fix in linspace_op::packetOp(row,col). Fixes bug #232.

Also, add regression test.
This commit is contained in:
Jitse Niesen
2011-03-24 10:42:11 +00:00
parent 42bc1f77be
commit c6ad2deead
2 changed files with 4 additions and 5 deletions

View File

@@ -605,7 +605,7 @@ template <typename Scalar, bool RandomAccess> struct linspaced_op
EIGEN_STRONG_INLINE const Packet packetOp(Index row, Index col) const
{
eigen_assert(col==0 || row==0);
return impl(col + row);
return impl.packetOp(col + row);
}
// This proxy object handles the actual required temporaries, the different