COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/DenseBase_LinSpaced_seq_dep...

3 lines
139 B
C++

cout << VectorXi::LinSpaced(Sequential,4,7,10).transpose() << endl;
cout << VectorXd::LinSpaced(Sequential,5,0.0,1.0).transpose() << endl;