source:
pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/Matrix_resize_int.cpp@
136
Last change on this file since 136 was 136, checked in by , 7 years ago | |
---|---|
File size: 235 bytes |
Line | |
---|---|
1 | VectorXd v(10); |
2 | v.resize(3); |
3 | RowVector3d w; |
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; |
Note:
See TracBrowser
for help on using the repository browser.