diff --git a/doc/TutorialMatrixClass.dox b/doc/TutorialMatrixClass.dox index 3e0785a1f..e489f6d54 100644 --- a/doc/TutorialMatrixClass.dox +++ b/doc/TutorialMatrixClass.dox @@ -277,6 +277,8 @@ Matrix`. For example, \c MatrixXi for `Matrix`. +\li \c MatrixXNt for `Matrix`. For example, \c MatrixX3i for `Matrix`. +\li \c MatrixNXt for `Matrix`. For example, \c Matrix4Xd for `Matrix`. \li \c VectorNt for `Matrix`. For example, \c Vector2f for `Matrix`. \li \c RowVectorNt for `Matrix`. For example, \c RowVector3d for `Matrix`. diff --git a/doc/examples/TutorialLinAlgSVDSolve.cpp b/doc/examples/TutorialLinAlgSVDSolve.cpp index ca2e78c0c..04cbe1b2d 100644 --- a/doc/examples/TutorialLinAlgSVDSolve.cpp +++ b/doc/examples/TutorialLinAlgSVDSolve.cpp @@ -3,10 +3,10 @@ int main() { - MatrixXf A = MatrixXf::Random(3, 2); - cout << "Here is the matrix A:\n" << A << endl; - VectorXf b = VectorXf::Random(3); - cout << "Here is the right hand side b:\n" << b << endl; - cout << "The least-squares solution is:\n" - << A.template bdcSvd().solve(b) << endl; + Eigen::MatrixXf A = Eigen::MatrixXf::Random(3, 2); + std::cout << "Here is the matrix A:\n" << A << std::endl; + Eigen::VectorXf b = Eigen::VectorXf::Random(3); + std::cout << "Here is the right hand side b:\n" << b << std::endl; + std::cout << "The least-squares solution is:\n" + << A.template bdcSvd().solve(b) << std::endl; }