aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/Cwise_abs2.cpp
blob: 2c4f9b3440a4d32e5403bbb0329531766aebd2d2 (plain)
1
2
Array3d v(1,-2,-3);
cout << v.abs2() << endl;