From 069ecbb4ab6104c0e04d5dafffa8cf750bdd82b0 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 7 Dec 2008 21:40:53 +0000 Subject: * complete the change norm2->squaredNorm in PartialRedux * somehow the NICE_RANDOM stuff wasn't being used anymore and tests were sometimes failing again. Fixed by #including Eigen/Array instead of cherry-picking just Random.h. * little fixes in the unaligned assert page --- doc/snippets/PartialRedux_squaredNorm.cpp | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/snippets/PartialRedux_squaredNorm.cpp (limited to 'doc/snippets/PartialRedux_squaredNorm.cpp') diff --git a/doc/snippets/PartialRedux_squaredNorm.cpp b/doc/snippets/PartialRedux_squaredNorm.cpp new file mode 100644 index 000000000..9f3293e65 --- /dev/null +++ b/doc/snippets/PartialRedux_squaredNorm.cpp @@ -0,0 +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().squaredNorm() << endl; -- cgit v1.2.3