Download include/eigen/doc/examples/Tutorial_BlockOperations_vector.cpp from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/examples/Tutorial_BlockOperations_vector.cpp
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/include/eigen/doc/examples/Tutorial_BlockOperations_vector.cpp
-
curl -L -o Tutorial_BlockOperations_vector.cpp https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/examples/Tutorial_BlockOperations_vector.cpp
348 Bytes
| using namespace std; | |
| int main() | |
| { | |
| Eigen::ArrayXf v(6); | |
| v << 1, 2, 3, 4, 5, 6; | |
| cout << "v.head(3) =" << endl << v.head(3) << endl << endl; | |
| cout << "v.tail<3>() = " << endl << v.tail<3>() << endl << endl; | |
| v.segment(1,4) *= 2; | |
| cout << "after 'v.segment(1,4) *= 2', v =" << endl << v << endl; | |
| } | |