aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-05 21:19:40 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-05 21:19:40 +0000
commita4487ef19820754429bf9a76bbe567a8c7588f32 (patch)
tree26b7b2d745abc94eef4ecde7db2f03690c919a5a /doc
parente80f0b6c4e4989295aebe214896613ca88cbf22b (diff)
add snippet for sub/super diagonal
fix a few doc issues
Diffstat (limited to 'doc')
-rw-r--r--doc/C03_TutorialGeometry.dox4
-rw-r--r--doc/snippets/MatrixBase_diagonal_int.cpp5
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/C03_TutorialGeometry.dox b/doc/C03_TutorialGeometry.dox
index b3c860d53..2d3d742c9 100644
--- a/doc/C03_TutorialGeometry.dox
+++ b/doc/C03_TutorialGeometry.dox
@@ -10,7 +10,7 @@ namespace Eigen {
| \ref TutorialSparse "Sparse matrix"
</div>
-In this tutorial chapter we will shortly introduce the many possibilities offered by the \ref GeometryModule "geometry module",
+In this tutorial chapter we will shortly introduce the many possibilities offered by the \ref Geometry_Module "geometry module",
namely 2D and 3D rotations and affine transformations.
\b Table \b of \b contents
@@ -106,7 +106,7 @@ Transform3f m = Translation3f(..); Transform3f m = Matrix3f(..);
<a href="#" class="top">top</a>\section TutorialGeoCommontransformationAPI Common API across transformation types
-To some extent, Eigen's \ref GeometryModule "geometry module" allows you to write
+To some extent, Eigen's \ref Geometry_Module "geometry module" allows you to write
generic algorithms working on any kind of transformation representations:
<table class="tutorial_code">
<tr><td>
diff --git a/doc/snippets/MatrixBase_diagonal_int.cpp b/doc/snippets/MatrixBase_diagonal_int.cpp
new file mode 100644
index 000000000..0e73d1c16
--- /dev/null
+++ b/doc/snippets/MatrixBase_diagonal_int.cpp
@@ -0,0 +1,5 @@
+Matrix4i m = Matrix4i::Random();
+cout << "Here is the matrix m:" << endl << m << endl;
+cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl
+ << m.diagonal<1>().transpose() << endl
+ << m.diagonal<-2>().transpose() << endl;