eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp

3 lines
50 B
C++
Raw Normal View History

Vector3d v(1,2,4);
cout << v.cwiseSqrt() << endl;