MatrixExponential.cpp
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   const double pi = std::acos(-1.0);
00009 
00010   MatrixXd A(3,3);
00011   A << 0,    -pi/4, 0,
00012        pi/4, 0,     0,
00013        0,    0,     0;
00014   std::cout << "The matrix A is:\n" << A << "\n\n";
00015   std::cout << "The matrix exponential of A is:\n" << A.exp() << "\n\n";
00016 }


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:06