From 5165de97a44869188b19e62b669b6bc78d8e96e0 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 4 Jan 2017 23:08:27 +0100 Subject: Add missing snippet files. --- doc/snippets/Cwise_boolean_xor.cpp | 2 ++ doc/snippets/MatrixBase_selfadjointView.cpp | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 doc/snippets/Cwise_boolean_xor.cpp create mode 100644 doc/snippets/MatrixBase_selfadjointView.cpp (limited to 'doc/snippets') diff --git a/doc/snippets/Cwise_boolean_xor.cpp b/doc/snippets/Cwise_boolean_xor.cpp new file mode 100644 index 000000000..99bcc5e09 --- /dev/null +++ b/doc/snippets/Cwise_boolean_xor.cpp @@ -0,0 +1,2 @@ +.Array3d v(-1,2,1), w(-3,2,3); +cout << ((v()) << endl; +cout << "Here is the symmetric matrix extracted from the lower part of m:" << endl + << Matrix3i(m.selfadjointView()) << endl; -- cgit v1.2.3