Download include/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/include/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp
-
curl -L -o Tutorial_ArrayClass_cwise_other.cpp https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/include/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp
410 Bytes
| using namespace Eigen; | |
| using namespace std; | |
| int main() | |
| { | |
| ArrayXf a = ArrayXf::Random(5); | |
| a *= 2; | |
| cout << "a =" << endl | |
| << a << endl; | |
| cout << "a.abs() =" << endl | |
| << a.abs() << endl; | |
| cout << "a.abs().sqrt() =" << endl | |
| << a.abs().sqrt() << endl; | |
| cout << "a.min(a.abs().sqrt()) =" << endl | |
| << a.min(a.abs().sqrt()) << endl; | |
| } | |