mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
9 lines
432 B
C++
9 lines
432 B
C++
cout << "Even spacing inputs:" << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 4).transpose() << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 8).transpose() << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 15).transpose() << endl;
|
|
cout << "Uneven spacing inputs:" << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 7).transpose() << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 9).transpose() << endl;
|
|
cout << VectorXi::LinSpaced(8, 1, 16).transpose() << endl;
|