threed-beam-fea/ext/eigen-3.2.7/doc/snippets/MatrixBase_cwiseSqrt.cpp

3 lines
50 B
C++

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