aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_cwiseProduct.cpp
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2010-07-23 20:32:33 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2010-07-23 20:32:33 +0100
commit2b5a0060b4576776f6a3d1411654009dd40a2d41 (patch)
tree6f55a8ba5f179c1c27e628dda46b65ccdfdb119d /doc/snippets/MatrixBase_cwiseProduct.cpp
parent072ee3c07d5fd45a555aa4eb90e1394fc5ad6583 (diff)
Add examples for API documentation of MatrixBase::cwiseXxx() methods.
Diffstat (limited to 'doc/snippets/MatrixBase_cwiseProduct.cpp')
-rw-r--r--doc/snippets/MatrixBase_cwiseProduct.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_cwiseProduct.cpp b/doc/snippets/MatrixBase_cwiseProduct.cpp
new file mode 100644
index 000000000..1db3a1132
--- /dev/null
+++ b/doc/snippets/MatrixBase_cwiseProduct.cpp
@@ -0,0 +1,4 @@
+Matrix3i a = Matrix3i::Random(), b = Matrix3i::Random();
+Matrix3i c = a.cwiseProduct(b);
+cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl;
+