MatrixPower_optimal.cpp File Reference
#include <unsupported/Eigen/MatrixFunctions>
#include <iostream>

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
6  {
7  Matrix4cd A = Matrix4cd::Random();
9 
10  std::cout << "The matrix A is:\n"
11  << A
12  << "\n\n"
13  "A^3.1 is:\n"
14  << Apow(3.1)
15  << "\n\n"
16  "A^3.3 is:\n"
17  << Apow(3.3)
18  << "\n\n"
19  "A^3.7 is:\n"
20  << Apow(3.7)
21  << "\n\n"
22  "A^3.9 is:\n"
23  << Apow(3.9) << std::endl;
24  return 0;
25 }
Class for computing matrix powers.
Definition: MatrixPower.h:340
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186