diff options
Diffstat (limited to 'eigen/doc/snippets/PartialRedux_prod.cpp')
-rw-r--r-- | eigen/doc/snippets/PartialRedux_prod.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eigen/doc/snippets/PartialRedux_prod.cpp b/eigen/doc/snippets/PartialRedux_prod.cpp new file mode 100644 index 0000000..aacf09c --- /dev/null +++ b/eigen/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; |