1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-05-07 21:39:04 +08:00
eigen/doc/snippets/Cwise_abs2.cpp

3 lines
48 B
C++

Array3d v(1, -2, -3);
cout << v.abs2() << endl;