diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/snippets/Cwise_product.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/snippets/Cwise_product.cpp b/doc/snippets/Cwise_product.cpp new file mode 100644 index 000000000..460ed6700 --- /dev/null +++ b/doc/snippets/Cwise_product.cpp @@ -0,0 +1,4 @@ +Matrix3i a = Matrix3i::Random(), b = Matrix3i::Random(); +Matrix3i c = a.cwise() * b; +cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl; + |