aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/MatrixBase_part.cpp')
-rw-r--r--doc/snippets/MatrixBase_part.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/MatrixBase_part.cpp b/doc/snippets/MatrixBase_part.cpp
index fbc55b1ca..1abbd6888 100644
--- a/doc/snippets/MatrixBase_part.cpp
+++ b/doc/snippets/MatrixBase_part.cpp
@@ -1,5 +1,5 @@
Matrix3d m = Matrix3i::Zero();
-m.part<Eigen::StrictlyUpper>().setOnes();
+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;