Unified LinSpaced in order to be conform with other setter methods as e.g. Constant.

This commit is contained in:
Hauke Heibel
2010-07-22 14:04:00 +02:00
parent 8e21cef80a
commit 734469e43f
7 changed files with 51 additions and 20 deletions

View File

@@ -1,2 +1,2 @@
cout << VectorXi::LinSpaced(7,10,4).transpose() << endl;
cout << VectorXd::LinSpaced(0.0,1.0,5).transpose() << endl;
cout << VectorXi::LinSpaced(4,7,10).transpose() << endl;
cout << VectorXd::LinSpaced(5,0.0,1.0).transpose() << endl;

View File

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

View File

@@ -1,3 +1,3 @@
VectorXf v;
v.setLinSpaced(0.5f,1.5f,5).transpose();
v.setLinSpaced(5,0.5f,1.5f).transpose();
cout << v << endl;