eigen/doc/snippets/Cwise_acos.cpp

3 lines
55 B
C++

Array3d v(0, sqrt(2.)/2, 1);
cout << v.acos() << endl;