Go to the documentation of this file.00001 #include <unsupported/Eigen/MatrixFunctions>
00002 #include <iostream>
00003
00004 using namespace Eigen;
00005
00006 int main()
00007 {
00008 Matrix4cd A = Matrix4cd::Random();
00009 MatrixPower<Matrix4cd> Apow(A);
00010
00011 std::cout << "The matrix A is:\n" << A << "\n\n"
00012 "A^3.1 is:\n" << Apow(3.1) << "\n\n"
00013 "A^3.3 is:\n" << Apow(3.3) << "\n\n"
00014 "A^3.7 is:\n" << Apow(3.7) << "\n\n"
00015 "A^3.9 is:\n" << Apow(3.9) << std::endl;
00016 return 0;
00017 }