aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/PartialRedux_maxCoeff.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-08-19 04:30:28 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-08-19 04:30:28 +0000
commit9466e5f94edbff1219cd48639fd0ef80e11b85a9 (patch)
treec3d09398538aee2cb98fe1f4065cba860b91eef9 /doc/snippets/PartialRedux_maxCoeff.cpp
parent95dd09bea62010ba3aba36d4833a3cd1594a2372 (diff)
* doc improvements in Cwise and PartialRedux:
- 33 new snippets - unfuck doxygen output in Cwise (issues with function macros) - more see-also links from outside, making Cwise more discoverable * rename matrixNorm() to operatorNorm(). There are many matrix norms (the L2 is another one) but only one is called the operator norm. Risk of confusion with keyword operator is not too scary after all.
Diffstat (limited to 'doc/snippets/PartialRedux_maxCoeff.cpp')
-rw-r--r--doc/snippets/PartialRedux_maxCoeff.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/snippets/PartialRedux_maxCoeff.cpp b/doc/snippets/PartialRedux_maxCoeff.cpp
new file mode 100644
index 000000000..ff1a7ebdb
--- /dev/null
+++ b/doc/snippets/PartialRedux_maxCoeff.cpp
@@ -0,0 +1,3 @@
+Matrix3d m = Matrix3d::Random();
+cout << "Here is the matrix m:" << endl << m << endl;
+cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl; \ No newline at end of file