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_cwiseAbs2.cpp b/doc/snippets/MatrixBase_cwiseAbs2.cpp new file mode 100644 index 0000000..889a2e2 --- /dev/null +++ b/doc/snippets/MatrixBase_cwiseAbs2.cpp
@@ -0,0 +1,4 @@ +MatrixXd m(2,3); +m << 2, -4, 6, + -5, 1, 0; +cout << m.cwiseAbs2() << endl;