mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #998: Started fixing doxygen warnings
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#ifndef _MSC_VER
|
||||
#warning deprecated
|
||||
#endif
|
||||
/*
|
||||
Matrix3d m = Matrix3d::Zero();
|
||||
m.part<Eigen::UpperTriangular>().setOnes();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
Matrix3d n = Matrix3d::Ones();
|
||||
n.part<Eigen::LowerTriangular>() *= 2;
|
||||
cout << "Here is the matrix n:" << endl << n << endl;
|
||||
cout << "And now here is m.inverse()*n, taking advantage of the fact that"
|
||||
" m is upper-triangular:" << endl
|
||||
<< m.marked<Eigen::UpperTriangular>().solveTriangular(n);
|
||||
*/
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef _MSC_VER
|
||||
#warning deprecated
|
||||
#endif
|
||||
/*
|
||||
Matrix3d m = Matrix3d::Zero();
|
||||
m.part<Eigen::StrictlyUpperTriangular>().setOnes();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "And let us now compute m*m.adjoint() in a very optimized way" << endl
|
||||
<< "taking advantage of the symmetry." << endl;
|
||||
Matrix3d n;
|
||||
n.part<Eigen::SelfAdjoint>() = (m*m.adjoint()).lazy();
|
||||
cout << "The result is:" << endl << n << endl;
|
||||
*/
|
||||
@@ -1,13 +1,9 @@
|
||||
#ifndef _MSC_VER
|
||||
#warning deprecated
|
||||
#endif
|
||||
/* deprecated
|
||||
Matrix3i m = Matrix3i::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the upper-triangular matrix extracted from m:" << endl
|
||||
<< m.part<Eigen::UpperTriangular>() << endl;
|
||||
<< Matrix3i(m.triangularView<Eigen::Upper>()) << endl;
|
||||
cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl
|
||||
<< m.part<Eigen::StrictlyUpperTriangular>() << endl;
|
||||
<< Matrix3i(m.triangularView<Eigen::StrictlyUpper>()) << endl;
|
||||
cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl
|
||||
<< m.part<Eigen::UnitLowerTriangular>() << endl;
|
||||
*/
|
||||
<< Matrix3i(m.triangularView<Eigen::UnitLower>()) << endl;
|
||||
// FIXME need to implement output for triangularViews (Bug 885)
|
||||
11
doc/snippets/Triangular_solve.cpp
Normal file
11
doc/snippets/Triangular_solve.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
Matrix3d m = Matrix3d::Zero();
|
||||
m.triangularView<Eigen::Upper>().setOnes();
|
||||
cout << "Here is the matrix m:\n" << m << endl;
|
||||
Matrix3d n = Matrix3d::Ones();
|
||||
n.triangularView<Eigen::Lower>() *= 2;
|
||||
cout << "Here is the matrix n:\n" << n << endl;
|
||||
cout << "And now here is m.inverse()*n, taking advantage of the fact that"
|
||||
" m is upper-triangular:\n"
|
||||
<< m.triangularView<Eigen::Upper>().solve(n) << endl;
|
||||
cout << "And this is n*m.inverse():\n"
|
||||
<< m.triangularView<Eigen::Upper>().solve<Eigen::OnTheRight>(n);
|
||||
Reference in New Issue
Block a user