diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-02-10 18:06:05 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-02-10 18:06:05 +0000 |
commit | cbbc6d940bd6ddf7d96352b4b4e3033ff4e555fe (patch) | |
tree | c9e905f59b380bac934bf44dd635060cb1f2c264 /doc/snippets | |
parent | a0cc5fba0a3dc600e858720c9fcde3a9c13e740a (diff) |
* add ei_predux_mul internal function
* apply Ricard Marxer's prod() patch with fixes for the vectorized path
Diffstat (limited to 'doc/snippets')
-rw-r--r-- | doc/snippets/MatrixBase_prod.cpp | 3 | ||||
-rw-r--r-- | doc/snippets/PartialRedux_prod.cpp | 3 |
2 files changed, 6 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; diff --git a/doc/snippets/PartialRedux_prod.cpp b/doc/snippets/PartialRedux_prod.cpp new file mode 100644 index 000000000..aacf09cbb --- /dev/null +++ b/doc/snippets/PartialRedux_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 each row:" << endl << m.rowwise().prod() << endl; |