aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/PartialRedux_norm2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/PartialRedux_norm2.cpp')
-rw-r--r--doc/snippets/PartialRedux_norm2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/PartialRedux_norm2.cpp b/doc/snippets/PartialRedux_norm2.cpp
index a077309a3..9f3293e65 100644
--- a/doc/snippets/PartialRedux_norm2.cpp
+++ b/doc/snippets/PartialRedux_norm2.cpp
@@ -1,3 +1,3 @@
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
-cout << "Here is the square norm of each row:" << endl << m.rowwise().norm2() << endl;
+cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << endl;