Go to the documentation of this file.00001 MatrixXd X = MatrixXd::Random(4,4);
00002 MatrixXd A = X * X.transpose();
00003 cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl;
00004
00005 SelfAdjointEigenSolver<MatrixXd> es(A);
00006 cout << "The inverse square root of A is: " << endl;
00007 cout << es.operatorInverseSqrt() << endl;
00008 cout << "We can also compute it with operatorSqrt() and inverse(). That yields: " << endl;
00009 cout << es.operatorSqrt().inverse() << endl;