commit | 2b5a0060b4576776f6a3d1411654009dd40a2d41 | [log] [tgz] |
---|---|---|
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | Fri Jul 23 20:32:33 2010 +0100 |
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | Fri Jul 23 20:32:33 2010 +0100 |
tree | 6f55a8ba5f179c1c27e628dda46b65ccdfdb119d | |
parent | 072ee3c07d5fd45a555aa4eb90e1394fc5ad6583 [diff] [blame] |
Add examples for API documentation of MatrixBase::cwiseXxx() methods.
diff --git a/doc/snippets/MatrixBase_cwiseInverse.cpp b/doc/snippets/MatrixBase_cwiseInverse.cpp new file mode 100644 index 0000000..23e08f7 --- /dev/null +++ b/doc/snippets/MatrixBase_cwiseInverse.cpp
@@ -0,0 +1,4 @@ +MatrixXd m(2,3); +m << 2, 0.5, 1, + 3, 0.25, 1; +cout << m.cwiseInverse() << endl;