MatrixLogarithm.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   using std::sqrt;
00009   MatrixXd A(3,3);
00010   A << 0.5*sqrt(2), -0.5*sqrt(2), 0,
00011        0.5*sqrt(2),  0.5*sqrt(2), 0,
00012        0,            0,           1;
00013   std::cout << "The matrix A is:\n" << A << "\n\n";
00014   std::cout << "The matrix logarithm of A is:\n" << A.log() << "\n";
00015 }


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:33:08