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

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
6  {
7  const double pi = std::acos(-1.0);
8 
9  MatrixXd A(3, 3);
10  A << 0, -pi / 4, 0, pi / 4, 0, 0, 0, 0, 0;
11  std::cout << "The matrix A is:\n" << A << "\n\n";
12  std::cout << "The matrix exponential of A is:\n" << A.exp() << "\n\n";
13 }
AnnoyingScalar acos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:138
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
const Mdouble pi
Definition: ExtendedMath.h:23

References acos(), and constants::pi.