image_framework_ymj/include/eigen3/doc/snippets/Cwise_abs.cpp

3 lines
45 B
C++
Raw Permalink Normal View History

2024-12-06 16:25:16 +08:00
Array3d v(1,-2,-3);
cout << v.abs() << endl;