aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_rowwise.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/MatrixBase_rowwise.cpp')
-rw-r--r--doc/snippets/MatrixBase_rowwise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/MatrixBase_rowwise.cpp b/doc/snippets/MatrixBase_rowwise.cpp
index 220546540..ae93964ea 100644
--- a/doc/snippets/MatrixBase_rowwise.cpp
+++ b/doc/snippets/MatrixBase_rowwise.cpp
@@ -2,4 +2,4 @@ Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl;
cout << "Here is the maximum absolute value of each row:"
- << endl << m.cwise().abs().rowwise().maxCoeff() << endl;
+ << endl << m.cwiseAbs().rowwise().maxCoeff() << endl;