1 #include <unsupported/Eigen/MatrixFunctions> 8 MatrixXd
A = MatrixXd::Random(3,3);
9 std::cout <<
"A = \n" << A <<
"\n\n";
11 MatrixXd sinA = A.sin();
12 std::cout <<
"sin(A) = \n" << sinA <<
"\n\n";
14 MatrixXd cosA = A.cos();
15 std::cout <<
"cos(A) = \n" << cosA <<
"\n\n";
19 std::cout <<
"sin^2(A) + cos^2(A) = \n" << sinA*sinA + cosA*cosA <<
"\n\n";
Namespace containing all symbols from the Eigen library.
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A