2016-10-24 21:50:27 +08:00
|
|
|
cout << "Even spacing inputs:" << endl;
|
2023-12-06 05:22:55 +08:00
|
|
|
cout << VectorXi::LinSpaced(8, 1, 4).transpose() << endl;
|
|
|
|
|
cout << VectorXi::LinSpaced(8, 1, 8).transpose() << endl;
|
|
|
|
|
cout << VectorXi::LinSpaced(8, 1, 15).transpose() << endl;
|
2016-10-24 21:50:27 +08:00
|
|
|
cout << "Uneven spacing inputs:" << endl;
|
2023-12-06 05:22:55 +08:00
|
|
|
cout << VectorXi::LinSpaced(8, 1, 7).transpose() << endl;
|
|
|
|
|
cout << VectorXi::LinSpaced(8, 1, 9).transpose() << endl;
|
|
|
|
|
cout << VectorXi::LinSpaced(8, 1, 16).transpose() << endl;
|