Files
FastDeploy/third_party/eigen/doc/snippets/MatrixBase_array_const.cpp
Jack Zhou 355382ad63 Move eigen to third party (#282)
* remove useless statement

* Add eigen to third_party dir

* remove reducdant lines
2022-09-26 19:24:02 +08:00

5 lines
238 B
C++

Vector3d v(-1, 2, -3);
cout << "the absolute values:" << endl << v.array().abs() << endl;
cout << "the absolute values plus one:" << endl << v.array().abs() + 1 << endl;
cout << "sum of the squares: " << v.array().square().sum() << endl;