LinSpaced does not work properly for row vectors
Submitted by Ian Mackenzie
Assigned to Nobody
Link to original bugzilla bug (#79)
Version: 3.0
Operating system: Mac OS
Description
Created attachment 12
Simple test cases
There seem to be some issues with using LinSpaced with row vectors. Simply outputting something like RowVectorXd::LinSpaced(3, 0, 1) works, but comparing RowVectorXd::LinSpaced(3, 0, 1) == RowVector3d(0, 0.5, 1) fails and performing the explicit conversion MatrixXd(RowVectorXd::LinSpaced(3, 0, 1)) produces a matrix of all zeros. All the corresponding VectorXd versions work; I've attached a file that demonstrates the issue.
Eigen 3 Beta 2
g++ --version: i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Attachment 12, "Simple test cases":