mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
03ad303d14
* add missing assert in resize(int) * add examples for all resize variants * expand docs (part of which is from Tim Hutt's e-mail)
7 lines
235 B
C++
7 lines
235 B
C++
VectorXd v(10);
|
|
v.resize(3);
|
|
RowVector3d w;
|
|
w.resize(3); // this is legal, but has no effect
|
|
cout << "v: " << v.rows() << " rows, " << v.cols() << " cols" << endl;
|
|
cout << "w: " << w.rows() << " rows, " << w.cols() << " cols" << endl;
|