1 #include <unsupported/Eigen/MatrixFunctions> 11 A <<
cos(pi/3), -
sin(pi/3),
13 std::cout <<
"The matrix A is:\n" << A <<
"\n\n";
14 std::cout <<
"The matrix square root of A is:\n" << A.sqrt() <<
"\n\n";
15 std::cout <<
"The square of the last matrix is:\n" << A.sqrt() * A.sqrt() <<
"\n";
EIGEN_DEVICE_FUNC const CosReturnType cos() const
EIGEN_DEVICE_FUNC const AcosReturnType acos() const
EIGEN_DEVICE_FUNC const SinReturnType sin() const