add snippet for sub/super diagonal

fix a few doc issues
This commit is contained in:
Gael Guennebaud
2009-02-05 21:19:40 +00:00
parent e80f0b6c4e
commit a4487ef198
6 changed files with 16 additions and 18 deletions

View File

@@ -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;