Matrix_resize_int.cpp
Go to the documentation of this file.
1 VectorXd v(10);
2 v.resize(3);
4 w.resize(3); // this is legal, but has no effect
5 cout << "v: " << v.rows() << " rows, " << v.cols() << " cols" << endl;
6 cout << "w: " << w.rows() << " rows, " << w.cols() << " cols" << endl;
RowVector3d w
VectorXd v(10)
Matrix< double, 1, 3 > RowVector3d
1Ă—3 vector of type double.
Definition: Matrix.h:502
Matrix< double, Dynamic, 1 > VectorXd
DynamicĂ—1 vector of type double.
Definition: Matrix.h:502