mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Various documentation updates:
- update the tutorial - update doc of deprecated cwise function - update cwise doc snippets
This commit is contained in:
4
doc/snippets/MatrixBase_array_const.cpp
Normal file
4
doc/snippets/MatrixBase_array_const.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user