C++程序  |  4行  |  60 B

VectorXf v;
v.setLinSpaced(5,0.5f,1.5f);
cout << v << endl;