diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-07-23 20:32:33 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-07-23 20:32:33 +0100 |
commit | 2b5a0060b4576776f6a3d1411654009dd40a2d41 (patch) | |
tree | 6f55a8ba5f179c1c27e628dda46b65ccdfdb119d /doc/snippets/MatrixBase_cwiseAbs.cpp | |
parent | 072ee3c07d5fd45a555aa4eb90e1394fc5ad6583 (diff) |
Add examples for API documentation of MatrixBase::cwiseXxx() methods.
Diffstat (limited to 'doc/snippets/MatrixBase_cwiseAbs.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_cwiseAbs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_cwiseAbs.cpp b/doc/snippets/MatrixBase_cwiseAbs.cpp new file mode 100644 index 000000000..28a31600f --- /dev/null +++ b/doc/snippets/MatrixBase_cwiseAbs.cpp @@ -0,0 +1,4 @@ +MatrixXd m(2,3); +m << 2, -4, 6, + -5, 1, 0; +cout << m.cwiseAbs() << endl; |