aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_prod.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-10 18:06:05 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-10 18:06:05 +0000
commitcbbc6d940bd6ddf7d96352b4b4e3033ff4e555fe (patch)
treec9e905f59b380bac934bf44dd635060cb1f2c264 /doc/snippets/MatrixBase_prod.cpp
parenta0cc5fba0a3dc600e858720c9fcde3a9c13e740a (diff)
* add ei_predux_mul internal function
* apply Ricard Marxer's prod() patch with fixes for the vectorized path
Diffstat (limited to 'doc/snippets/MatrixBase_prod.cpp')
-rw-r--r--doc/snippets/MatrixBase_prod.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_prod.cpp b/doc/snippets/MatrixBase_prod.cpp
new file mode 100644
index 000000000..d2f27bdc3
--- /dev/null
+++ b/doc/snippets/MatrixBase_prod.cpp
@@ -0,0 +1,3 @@
+Matrix3d m = Matrix3d::Random();
+cout << "Here is the matrix m:" << endl << m << endl;
+cout << "Here is the product of all the coefficients:" << endl << m.prod() << endl;